def __init__(self, app): super(HashmalMain, self).__init__() self.app = app self.app.setStyleSheet(hashmal_style) self.changes_saved = True QtCore.QCoreApplication.setOrganizationName('mazaclub') QtCore.QCoreApplication.setApplicationName('hashmal') self.settings = QtCore.QSettings() self.setDockNestingEnabled(True) self.dock_handler = DockHandler(self) self.dock_handler.create_docks() self.dock_handler.do_default_layout() self.script_editor = ScriptEditor() self.script_editor.changesSaved.connect(self.on_changes_saved) self.setCentralWidget(self.script_editor) self.create_menubar() self.create_default_script() self.statusBar().setVisible(True) self.statusBar().messageChanged.connect(self.change_status_bar) self.restoreState( self.settings.value('toolLayout/default').toByteArray()) if self.settings.value('quickTipsOnStart', defaultValue=QtCore.QVariant(True)).toBool(): QtCore.QTimer.singleShot(500, self.do_quick_tips)