wonambi.bin.scroll_data module
- class wonambi.bin.scroll_data.MainWindow[source]
Bases:
QMainWindow
Create an instance of the main window.
- value(parameter, new_value=None)[source]
This function is a shortcut for any parameter. Instead of calling the widget, its config and its values, you can call directly the parameter.
- Parameters:
parameter (str) – name of the parameter of interest
new_value (str or float, optional) – new value for the parameter
- Returns:
str or float – if you didn’t specify new_value, it returns the current value.
Notes
It’s important to maintain an organized dict in DEFAULTS which has to correspond to the values in the widgets, also the name of the widget. DEFAULTS is used like a look-up table.