Main Window class
hardware_control.base.HCMainWindow module
- class hardware_control.base.HCMainWindow.HCMainWindow(app: App | None = None, dummy: bool = False)
Bases:
QMainWindowCreate a QMainWindow with some additional menus unique to hardware control (HC).
Typically, a new program will inherit from this class.
- Parameters:
app – The main app that will store all instruments, parameters, commands, etc. This parameter is optional.
dummy – If True, then the app runs in dummy mode. Only used if app is None.
Add a File menu with an option to exit and save all datasets.
- close()
Close the app.
- ctrl_c(signum, frame)
Close the app via Ctrl-C.
- save_all()
Save all datasets to a file, specified by a file dialog