Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, parent=None):
super(MainWindow, self).__init__(parent)
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')