예제 #1
0
파일: main.py 프로젝트: mrbez/pydosh
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
예제 #2
0
파일: main.py 프로젝트: innerhippy/pydosh
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
예제 #3
0
    def setStyle(self):
        """ Triggered from menu action when user selects a style/theme
		"""
        action = self.sender()
        if action:
            stylesheet.setStylesheet(action.text())
예제 #4
0
	def setStyle(self):
		""" Triggered from menu action when user selects a style/theme
		"""
		action = self.sender()
		if action:
			stylesheet.setStylesheet(action.text())