Skip to content

App

Report generator gui.

PyQt Library is based on c++ library and uses camel case by default. Although this does not match PEP8 style guidelines we will also implement camel case in this package.

Window

Bases: QMainWindow, Ui_MainWindow

Window class.

Source code in report_generator/report_generator_gui/app.py
16
17
18
19
20
21
22
class Window(QMainWindow, Ui_MainWindow):
    """Window class."""

    def __init__(self, parent=None) -> None:
        """Intitiate window."""
        super().__init__(parent)
        self.setupUi(self)

__init__(parent=None)

Intitiate window.

Source code in report_generator/report_generator_gui/app.py
19
20
21
22
def __init__(self, parent=None) -> None:
    """Intitiate window."""
    super().__init__(parent)
    self.setupUi(self)

main()

Generate Report Gui Main.

Source code in report_generator/report_generator_gui/app.py
26
27
28
29
30
31
def main():
    """Generate Report Gui Main."""
    QApplication(sys.argv)
    win = Window()
    win.show()
    sys.exit()