def main(): app = QtGui.QApplication(sys.argv) app.setWindowIcon(QtGui.QIcon(":/icons/pydosh.png")) QtCore.QCoreApplication.setApplicationName("pydosh") QtCore.QCoreApplication.setOrganizationName("innerhippy") QtCore.QCoreApplication.setOrganizationDomain("innerhippy.com") menubar = QtGui.QMenuBar() stylesheet.setStylesheet() loginDialog = LoginDialog() loginDialog.show() loginDialog.raise_() if loginDialog.exec_(): window = PydoshWindow() window.show() return app.exec_() return -1
def setStyle(self): """ Triggered from menu action when user selects a style/theme """ action = self.sender() if action: stylesheet.setStylesheet(action.text())