Counting
- module Counting
- CountingWindow : public QWidget
The CountingWindow class is a PySide2 Graphical User Interface (GUI) window that is called by DeployWindow class in order to configure a custom Counting use-case and write to usecase_config.json.
Public Functions
- __init__(self, path_to_label_list, _path_to_usecase_config)
The constructor. Sets the size of the window and configurations for usecase_config. Checks if the usecase_config.json file exists. If true, configure accordingly. Otherwise, assign default values. Calls setButtons function to populate window with button.
- setButtons(self)
A Mutator function that defines all buttons in CountingWindow.
- writeToUseCaseConfig(self)
A function that is triggered by the button labelled, Finish.
- closeWindow(self)
A function that is triggered by the button labelled, Cancel.
- addObject(self, index)
A function that is triggered by the DropDown Menu labelled, Available Objects
- removeObject(self, index)
A function that is triggered by the DropDown Menu labelled, Selected Objects