How to use the pyinstaller.main.AboutWindow function in pyinstaller

To help you get started, we’ve selected a few pyinstaller examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ussserrr / pid-controller-gui / pyinstaller / main.py View on Github external
self.setWindowTitle("PID GUI application")
        self.setWindowIcon(QIcon(resource_path('img/icon.png')))

        self.formWidget = self.FormWidget()
        self.formWidget.initUI(self)
        self.setCentralWidget(self.formWidget)

        exitAction = QAction(QIcon(resource_path('img/exit.png')), 'Exit', self)
        exitAction.setShortcut('Ctrl+Q')
        exitAction.setStatusTip('Exit application')
        exitAction.triggered.connect(app.quit)

        infoAction = QAction(QIcon(resource_path('img/info.png')), 'Info', self)
        infoAction.setShortcut('Ctrl+I')
        infoAction.setStatusTip('Info & about')
        self.aboutWindow = AboutWindow()
        infoAction.triggered.connect(self.aboutWindow.show)

        settingsAction = QAction(QIcon(resource_path('img/settings.png')), 'Settings', self)
        settingsAction.setShortcut('Ctrl+P')
        settingsAction.setStatusTip('Settings')
        self.settingsWindow = SettingsWindow()
        settingsAction.triggered.connect(self.settingsWindow.show)

        toolbar = self.addToolBar('')
        toolbar.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
        toolbar.addAction(exitAction)
        toolbar.addAction(infoAction)
        toolbar.addAction(settingsAction)

        # menubar = self.menuBar()
        mainMenu = self.menuBar().addMenu('&Menu')
github ussserrr / pid-controller-gui / pyinstaller / main.py View on Github external
def __init__(self, parent=None):
        super(AboutWindow, self).__init__(parent)
        self.setWindowTitle("Info & about")
        self.setFixedSize(350, 300)
        self.setWindowIcon(QIcon(resource_path('img/info.png')))

        self.sysTab = QWidget()
        self.aboutTab = QWidget()
        self.addTab(self.sysTab, "PID-controller")
        self.addTab(self.aboutTab, "About")
        self.initSysTabUI()
        self.initAboutTabUI()