|
ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
|
This class encapsulates processing of command-line arguments, instantiates a Controller then passes control to the Qt framework. More...
Public Member Functions | |
| __init__ (self, testing=False) | |
| closeEvent (self) | |
| Catch the exit signal from the control application, and call QApplication Quit. | |
| create_parser (self) | |
| Defines the command-line arguments and their defaults. | |
| hide_console (self) | |
| This isn't needed on Win10 (where pyinstaller's –hide-console hide-early works, though not hide-late), but apparently is on Win11 (where hide-early doesn't work; not sure about hide-late). | |
| parse_args (self, argv) | |
| Parse command-line arguments. | |
| run (self) | |
| run_from_root (self, pathname) | |
| ENLIGHTEN loads various settings from its own enlighten/assets/ example_code distribution, which it accesses through relative paths, and it can't find those if run from another directory. | |
Public Attributes | |
| app = QtWidgets.QApplication() | |
| args = None | |
| closeEvent | |
| controller = None | |
| int | exit_code = 0 |
| form = BasicWindow(title="Tec5USA" % common.VERSION) | |
| main_logger | |
| parser = self.create_parser() | |
| splash = QSplashScreen() | |
| testing = testing | |
This class encapsulates processing of command-line arguments, instantiates a Controller then passes control to the Qt framework.
| Enlighten.EnlightenApplication.__init__ | ( | self, | |
| testing = False ) |
| Enlighten.EnlightenApplication.closeEvent | ( | self | ) |
Catch the exit signal from the control application, and call QApplication Quit.
| Enlighten.EnlightenApplication.create_parser | ( | self | ) |
Defines the command-line arguments and their defaults.
| Enlighten.EnlightenApplication.hide_console | ( | self | ) |
This isn't needed on Win10 (where pyinstaller's –hide-console hide-early works, though not hide-late), but apparently is on Win11 (where hide-early doesn't work; not sure about hide-late).
Calling for coverage on Win11.
| Enlighten.EnlightenApplication.parse_args | ( | self, | |
| argv ) |
Parse command-line arguments.
| Enlighten.EnlightenApplication.run | ( | self | ) |
| Enlighten.EnlightenApplication.run_from_root | ( | self, | |
| pathname ) |
ENLIGHTEN loads various settings from its own enlighten/assets/ example_code distribution, which it accesses through relative paths, and it can't find those if run from another directory.
| Enlighten.EnlightenApplication.app = QtWidgets.QApplication() |
| Enlighten.EnlightenApplication.args = None |
| Enlighten.EnlightenApplication.closeEvent |
| Enlighten.EnlightenApplication.controller = None |
| Enlighten.EnlightenApplication.exit_code = 0 |
| Enlighten.EnlightenApplication.form = BasicWindow(title="Tec5USA" % common.VERSION) |
| Enlighten.EnlightenApplication.main_logger |
| Enlighten.EnlightenApplication.parser = self.create_parser() |
| Enlighten.EnlightenApplication.splash = QSplashScreen() |
| Enlighten.EnlightenApplication.testing = testing |