def setupUi(self, QtSixAMainW): QtSixAMainW.setObjectName(_fromUtf8('QtSixAMainW')) QtSixAMainW.resize(935, 513) controller = PS3ControllerView(self) controller.show() print self.style().objectName() QApplication.setStyle(QStyleFactory.create('Cleanlooks'))
def _configure_qt_style(self, preferred_styles): if preferred_styles is not None: for style_key in preferred_styles: style = QStyleFactory.create(style_key) if style is not None: self.app.setStyle(style) break
def __init__(self, parent=None): QWidget.__init__(self, parent) # Widgets, layouts and signals self._group = QButtonGroup() layout = QGridLayout() layout.setSpacing(0) ## Element for z, position in _ELEMENT_POSITIONS.items(): widget = ElementPushButton(z) widget.setStyle(QStyleFactory.create("windows")) widget.setCheckable(True) layout.addWidget(widget, *position) self._group.addButton(widget, z) ## Labels layout.addWidget(QLabel(''), 7, 0) # Dummy layout.addWidget(QLabel('*'), 5, 2, Qt.AlignRight) layout.addWidget(QLabel('*'), 8, 2, Qt.AlignRight) layout.addWidget(QLabel('**'), 6, 2, Qt.AlignRight) layout.addWidget(QLabel('**'), 9, 2, Qt.AlignRight) for row in [0, 1, 2, 3, 4, 5, 6, 8, 9]: layout.setRowStretch(row, 1) self.setLayout(layout) # Signals self._group.buttonClicked.connect(self.selectionChanged) # Default self.setColorFunction(_category_color_function)
def setStyle(): global _system_default style = QSettings().value("guistyle", "", type("")).lower() if style not in keys(): style = _system_default if style != app.qApp.style().objectName(): app.qApp.setStyle(QStyleFactory.create(style))
def create_app(arguments): app = QApplication(arguments) p = QPalette() p.setColor(QPalette.Window, QColor("#DDDDDD")) app.setPalette(p) keys = QStyleFactory.keys() # list of themes include: # ['Windows', 'WindowsXP', 'WindowsVista', 'Motif', 'CDE', 'Plastique', 'Cleanlooks'] # i'm using WindowsXP app.setStyle(QStyleFactory.create(keys[1])) # app.setWindowIcon(get_qicon(general_defs['icon'])) return app
def startmain(): """ Initialise the application and display the main window. """ app = QApplication(sys.argv) app.cleanup_files = [] QApplication.setStyle(QStyleFactory.create('CleanLooks')) QApplication.setPalette(QApplication.style().standardPalette()) QApplication.setApplicationName('Bing Wallpaper Changer') QApplication.setApplicationVersion(VERSION) QApplication.setOrganizationName('overThere.co.uk') QApplication.setWindowIcon(QIcon(':/icons/ui/ot_icon.svg')) print 'AppName: %s' % QApplication.applicationName() print 'AppVersion: %s' % QApplication.applicationVersion() print 'Company Name: %s' % QApplication.organizationName() QLocale.setDefault(QLocale(QLocale.English, QLocale.UnitedKingdom)) # Add passed arguments to app. app.args = parse_arguments() print 'Args:', app.args # Check to see if application already running. existing_pid = instance_check(app) if existing_pid: print existing_pid if app.args.quit_existing: # Command line argument passed to close existing program. Do that, then quit. if platform.system() == "Windows": subprocess.Popen("taskkill /F /T /PID %i" % existing_pid, shell=True) else: os.killpg(existing_pid, signal.SIGKILL) else: message_box_error('Program already running.', 'You can only have one copy of the Bing Wallpaper Changer running at once.') sys.exit() mainwindow = MainWindow() # mainwindow.show() sys.exit(app.exec_())
def main(argv=argv, cfg_file=cfg_file, update=1): """ The function is the client entry point. """ start_dir = os.getcwd() os.chdir(join(start_dir, dirname(argv[0]), dirname(cfg_file))) cfg_file = join(os.getcwd(), os.path.basename(cfg_file)) loadConfiguration(cfg_file) os.chdir(start_dir) path.append(config['servers']['path']) path.append(config['configobj']['path']) # this import must stay here, after the appending of configobj path to path import storage storage.init(config['storage']['path']) # this import must stay here, after the appending of configobj path to path from gui import Gui try: app = QApplication([]) app.setStyle(QStyleFactory.create("Cleanlooks")) gui = Gui(cfg_file) if not update: gui.displayWarning(PROJECT_NAME, gui._text['UpdateFail']) gui.show() exit(app.exec_()) except Exception, e: print 'Fatal Exception:', e info = getExceptionInfo() fd = open(join(config['exceptions']['save_path'], 'exception.txt'), 'a+') fd.write(info) fd.close() if config['exceptions']['send_email']: try: sendMail("DevClient fatal exception: %s" % e, info) except Exception, e: print 'Error while sending email:', e
def __init__(self, parent=None): QSlider.__init__(self, QtCore.Qt.Horizontal, parent) self.connect(self, SIGNAL("rangeChanged(int, int)"), self.updateRange) self.connect(self, SIGNAL("sliderReleased()"), self.movePressedHandle) self.setStyle(QStyleFactory.create('Plastique')) self.lower = 0 self.upper = 0 self.lowerPos = 0 self.upperPos = 0 self.offset = 0 self.position = 0 self.lastPressed = QxtSpanSlider.NoHandle self.upperPressed = QStyle.SC_None self.lowerPressed = QStyle.SC_None self.movement = QxtSpanSlider.FreeMovement self.mainControl = QxtSpanSlider.LowerHandle self.firstMovement = False self.blockTracking = False self.gradientLeft = self.palette().color(QPalette.Dark).light(110) self.gradientRight = self.palette().color(QPalette.Dark).light(110)
def start_main(): app = QApplication(sys.argv) icon = QIcon(':/icons/application.png') app.setWindowIcon(icon) # If compiled as a one-file PyInstaller package look for Qt4 Plugins in the TEMP folder. try: extra_path = [os.path.join(sys._MEIPASS, 'qt4_plugins')] app.setLibraryPaths(app.libraryPaths() + extra_path) app.utils_path = os.path.join(sys._MEIPASS, 'utils') except AttributeError: app.utils_path = os.path.join(os.getcwd(), 'utils') # Error handling stuff. if hasattr(sys, 'frozen'): sys.excepthook = except_hook app.setApplicationName('ABBYY Automator') app.setApplicationVersion(VERSION) app.setOrganizationName('Pearl Scan Solutions') print 'AppName: %s' % app.applicationName() print 'AppVersion: %s' % app.applicationVersion() print 'Company Name: %s' % app.organizationName() app.setStyle(QStyleFactory.create('Cleanlooks')) app.setPalette(QApplication.style().standardPalette()) if not instance_check(app): message_box_error('Program already running.', 'You can only have one copy of ABBYY Automator running at once.') sys.exit() mainwindow = MainWindow() mainwindow.show() app.exec_() app.closeAllWindows() app.quit()
def setupUi(self, QtSixAMainW): QtSixAMainW.setObjectName(_fromUtf8('QtSixAMainW')) QtSixAMainW.resize(935, 513) triggers = TiggersView(self) triggers.show() bumpers = BumpersView(self) bumpers.show() face = FaceButtonsView(self) face.show() dpad = DpadView(self) dpad.show() select = StartSelectView(self) select.show() sixaxis = SixAxisView(self) sixaxis.show() hbox = QHBoxLayout() hbox.addStretch(1) hbox.addWidget(triggers) hbox.addWidget(bumpers) hbox.addWidget(dpad) hbox.addWidget(face) hbox.addWidget(select) hbox.addWidget(sixaxis) vbox = QVBoxLayout() vbox.addStretch(1) vbox.addLayout(hbox) self.setLayout(vbox) self.progress = QProgressBar(self) self.progress.setGeometry(20, 2, 50, 20) self.progress.setTextVisible(False) self.progress.setOrientation(Qt.Vertical) self.progress.setValue(80) self.progress.move(60,28) self.progress.show() print self.style().objectName() QApplication.setStyle(QStyleFactory.create('Cleanlooks'))
def __init__(self, parent=None): """ Constructor """ super(MainWindow, self).__init__(parent) self.setAttribute(Qt.WA_DeleteOnClose) QApplication.setStyle(QStyleFactory.create('cleanlooks')) self.setupUi(self) self.scene = CustomGraphicsScene() self.connect(self.scene, SIGNAL("dropped_to_scene(QString)"), self.load_image) self.graphicsView.setScene(self.scene) self.scene.installEventFilter(self) self.graphicsView.setBackgroundBrush(QBrush(Qt.gray, Qt.BDiagPattern)) quit_icon = QApplication.style().standardIcon( QStyle.SP_DialogCloseButton) self.pushButtonQuit.setIcon(quit_icon) self.setWindowTitle('Analyze & ORC image with tesseract and leptonica') self.actionZoomOut.triggered.connect(self.zoomOut) self.actionZoomIn.triggered.connect(self.zoomIn) self.actionZoomTo1.triggered.connect(self.zoomTo1) self.connect(self.actionZoomFit, SIGNAL('triggered()'), self.zoomFit) # Initialize variables and pointers self.box_data = [] self.pix_image = False self.image_width = 0 self.image_height = 0 self.tesseract = None self.api = None self.lang = 'eng' lang = sett.readSetting('language') if lang: self.lang = lang self.initialize_tesseract() if self.tesseract: available_languages = tess.get_list_of_langs(self.tesseract, self.api) for lang in available_languages: self.comboBoxLang.addItem(lang, lang) current_index = self.comboBoxLang.findData(self.lang) if current_index: self.comboBoxLang.setCurrentIndex(current_index) for idx, psm in enumerate(tess.PSM): self.comboBoxPSM.addItem(psm, idx) for idx, ril in enumerate(tess.RIL): self.comboBoxRIL.addItem(ril, idx) self.leptonica = lept.get_leptonica() if not self.leptonica: self.show_msg('Leptonica initialization failed...') # Read settings and set default values geometry = sett.readSetting('settings_geometry') if geometry is not None: self.restoreGeometry(QVariant(geometry).toByteArray()) else: self.resize(1150, 950) state = sett.readSetting('state') if state is not None: self.restoreState(QVariant(state).toByteArray()) sp_1_state = sett.readSetting('splitter_1Sizes') if sp_1_state is not None: self.splitter_1.restoreState(QVariant(sp_1_state).toByteArray()) sp_2_state = sett.readSetting('splitter_2Sizes') if sp_2_state is not None: self.splitter_2.restoreState(QVariant(sp_2_state).toByteArray()) psm = sett.readSetting('PSM') if psm: current_index = self.comboBoxPSM.findData(psm) self.comboBoxPSM.setCurrentIndex(current_index) ril = sett.readSetting('RIL') if ril: current_index = self.comboBoxRIL.findData(ril) self.comboBoxRIL.setCurrentIndex(current_index) image_name = sett.readSetting('images/last_filename') if image_name: self.image_name = image_name self.load_image(image_name) zoom_factor = sett.readSetting('images/zoom_factor') self.setZoom(zoom_factor)
# Import resources from src import resources # lint:ok qapp = QApplication(sys.argv) qapp.setWindowIcon(QIcon(":img/logo")) # System language local = QLocale.system().name() translator = QTranslator() translator.load("qt_" + local, QLibraryInfo.location( QLibraryInfo.TranslationsPath)) qapp.installTranslator(translator) # Load services from src.gui.main_window import Pireal from src.gui import status_bar # lint:ok from src.gui import container # lint:ok from src.gui import table_widget # lint:ok from src.gui.query_editor import query_widget # lint:ok from src.gui import lateral_widget # lint:ok # Style qapp.setStyle(QStyleFactory.create("gtk")) INFO("Loading GUI...") gui = Pireal() # Style sheet with open('src/gui/style.qss') as f: qapp.setStyleSheet(f.read()) gui.show() gui.showMaximized() INFO("Pireal ready!") sys.exit(qapp.exec_())
def __init__(self, engine): super(MainWidget, self).__init__() self.initUI(engine) QApplication.setStyle(QStyleFactory.create('Cleanlooks'))
else: self.userXm = loginParser.xm self.menuPath = loginParser.path self.loginSuccessfulSignal_NoParameters.emit() self.close() self.destroy() def mousePressEvent(self, e): self.clickPos = e.pos(); def mouseMoveEvent(self, e): self.move(e.globalPos() - self.clickPos) if __name__ == '__main__': import sys file = QFile('./qss/Coffee.qss') file.open(QFile.ReadOnly) styleSheet = file.readAll() styleSheet = str(styleSheet, encoding='utf8') app = QApplication(sys.argv) a = loginDialog() a.show() app.setStyle(QStyleFactory.create('Plastique')) qApp.setStyleSheet(styleSheet) sys.exit(app.exec_())
def onStyleMenu(self, a): QApplication.setStyle(QStyleFactory.create(a.text())) self.setStyle(QStyleFactory.create(a.text())) self.config.saveStyle(a.text())
def __init__(self, parent=None): """ Constructor """ super(MainWindow, self).__init__(parent) self.setAttribute(Qt.WA_DeleteOnClose) QApplication.setStyle(QStyleFactory.create('cleanlooks')) self.setupUi(self) self.scene = CustomGraphicsScene() self.connect(self.scene, SIGNAL("dropped_to_scene(QString)"), self.load_image) self.graphicsView.setScene(self.scene) self.scene.installEventFilter(self) self.graphicsView.setBackgroundBrush(QBrush(Qt.gray, Qt.BDiagPattern)) quit_icon = QApplication.style().standardIcon( QStyle.SP_DialogCloseButton) self.pushButtonQuit.setIcon(quit_icon) self.setWindowTitle('Analyze & ORC image with tesseract and leptonica') self.actionZoomOut.triggered.connect(self.zoomOut) self.actionZoomIn.triggered.connect(self.zoomIn) self.actionZoomTo1.triggered.connect(self.zoomTo1) self.connect(self.actionZoomFit, SIGNAL('triggered()'), self.zoomFit) # Initialize variables and pointers self.box_data = [] self.pix_image = False self.image_width = 0 self.image_height = 0 self.tesseract = None self.api = None self.lang = 'eng' lang = sett.readSetting('language') if lang: self.lang = lang self.initialize_tesseract() if self.tesseract: available_languages = tess.get_list_of_langs( self.tesseract, self.api) for lang in available_languages: self.comboBoxLang.addItem(lang, lang) current_index = self.comboBoxLang.findData(self.lang) if current_index: self.comboBoxLang.setCurrentIndex(current_index) for idx, psm in enumerate(tess.PSM): self.comboBoxPSM.addItem(psm, idx) for idx, ril in enumerate(tess.RIL): self.comboBoxRIL.addItem(ril, idx) self.leptonica = lept.get_leptonica() if not self.leptonica: self.show_msg('Leptonica initialization failed...') # Read settings and set default values geometry = sett.readSetting('settings_geometry') if geometry is not None: self.restoreGeometry(QVariant(geometry).toByteArray()) else: self.resize(1150, 950) state = sett.readSetting('state') if state is not None: self.restoreState(QVariant(state).toByteArray()) sp_1_state = sett.readSetting('splitter_1Sizes') if sp_1_state is not None: self.splitter_1.restoreState(QVariant(sp_1_state).toByteArray()) sp_2_state = sett.readSetting('splitter_2Sizes') if sp_2_state is not None: self.splitter_2.restoreState(QVariant(sp_2_state).toByteArray()) psm = sett.readSetting('PSM') if psm: current_index = self.comboBoxPSM.findData(psm) self.comboBoxPSM.setCurrentIndex(current_index) ril = sett.readSetting('RIL') if ril: current_index = self.comboBoxRIL.findData(ril) self.comboBoxRIL.setCurrentIndex(current_index) image_name = sett.readSetting('images/last_filename') if image_name: self.image_name = image_name self.load_image(image_name) zoom_factor = sett.readSetting('images/zoom_factor') self.setZoom(zoom_factor)
#buttonObj.hide(); buttonObj.setStyleSheet(SpeakEasyGUI.programButtonModeTransitionStylesheet); def standardLookHandler(buttonObj): #buttonObj.show(); buttonObj.setStyleSheet(SpeakEasyGUI.programButtonStylesheet); if __name__ == "__main__": from PyQt4.QtGui import QStyleFactory, QApplication; # Create a Qt application # style = QStyleFactory.create("Plastique"); # style = QStyleFactory.create("Motif"); # style = QStyleFactory.create("GTK+"); # style = QStyleFactory.create("Windows"); style = QStyleFactory.create("Cleanlooks"); QApplication.setStyle(style); app = QApplication(sys.argv); soundPlayGui = SpeakEasyGUI(); soundPlayGui.hideButtonSignal.connect(alternateLookHandler); soundPlayGui.showButtonSignal.connect(standardLookHandler); # Enter Qt application main loop sys.exit(app.exec_());
def main(args): app = QApplication(args) app.setStyle(QStyleFactory.create("plastique")) ex = MainWindow() ex.show() sys.exit(app.exec_())
from PyQt4 import QtCore, QtGui from PyQt4.QtGui import QApplication, \ QStyleFactory from PyQt4.QtCore import QTranslator from ui.domotica_client import DomoticaClient from ui.admin_home_map import AdminHomeMap app = QtGui.QApplication(sys.argv) QApplication.setStyle(QStyleFactory.create('Cleanlooks')) # QApplication.setStyle(QStyleFactory.create('plastique')) trs = ['es','us'] def_tr = 'us' for i in range(len(sys.argv)): v = sys.argv[i] if v in ('-lang','--lang'): if (i < len(sys.argv)-1): v = sys.argv[i+1] if v in trs: def_tr = v tr = QTranslator()
def __init__(self): QMainWindow.__init__(self) self.setWindowTitle('%s %s' % (QApplication.applicationName(), QApplication.applicationVersion())); self.config = ConfigHandler(os.path.join(os.path.expanduser('~'), '.pywv/pywv.cfg'), self) self.setStyle(QStyleFactory.create(self.config.loadStyle())) if self.config.loadStyleSheet(): self.setStyleSheet(self.config.loadStyleSheet()) else: self.setStyleSheet("* {}") # without any stylesheet, windowstyles won't apply self.setDockOptions(QMainWindow.AnimatedDocks | QMainWindow.AllowNestedDocks | QMainWindow.AllowTabbedDocks | QMainWindow.VerticalTabs); # self.dummy = QWidget(self) self.setCentralWidget(QWidget(self)) self.pBar = QProgressBar(self) self.pBar.setRange(0, self.config.loadReloadInterval()) self.pBar.setFormat("%v Sekunden") if not self.config.loadAutoload(): self.pBar.hide() self.statusBar = QStatusBar(self) self.setStatusBar(self.statusBar) self.statusBar.addWidget(self.pBar) self.reloadTimer = QTimer(self); self.reloadTimer.setInterval(self.config.loadReloadInterval() * 1000) self.connect(self.reloadTimer, SIGNAL('timeout()'), self.reload_) if self.config.loadAutoload(): self.reloadTimer.start() self.autoloadStatusTimer = QTimer(self) self.autoloadStatusTimer.setInterval(1000) # 1 sec self.connect(self.autoloadStatusTimer, SIGNAL('timeout()'), self.onAutoloadStatus) self.autoloadStatusTimer.start() self.mAction = self.menuBar().addMenu(self.tr("&Action")) self.mAction.addAction(self.tr("&update"), self.reload_, QKeySequence('F5')) self.mAction.addAction(self.tr("e&xit"), self.onExit, 'Ctrl+Q') self.mStyle = QMenu(self.tr("&Style"), self) for s in list(QStyleFactory.keys()):# // fill in all available Styles self.mStyle.addAction(s) self.connect(self.mStyle, SIGNAL('triggered(QAction*)'), self.onStyleMenu) self.mOption = self.menuBar().addMenu(self.tr("&Options")) self.mOption.addAction(self.tr("reloadinterval") , self.onReloadTime , 'F8') self.mOption.addAction(self.tr("manage links") , self.onNewLink , 'F6') self.mOption.addSeparator() self.ontopAction = QAction(self.tr("always on &top") , self) self.showTrayAction = QAction(self.tr("show tray &icon") , self) self.closeToTrayAction = QAction(self.tr("close to &tray") , self) self.autoloadAction = QAction(self.tr("auto&load") , self) self.ontopAction.setCheckable(True) self.showTrayAction.setCheckable(True) self.closeToTrayAction.setCheckable(True) self.autoloadAction.setCheckable(True) self.showTrayAction.setChecked (self.config.loadShowTray() ) self.ontopAction.setChecked (self.config.loadOntop() ) self.closeToTrayAction.setChecked(self.config.loadCloseToTray()) self.autoloadAction.setChecked (self.config.loadAutoload() ) self.connect(self.ontopAction , SIGNAL('toggled(bool)') , self.onOntopAction) self.connect(self.showTrayAction , SIGNAL('toggled(bool)') , self.onShowTrayAction) self.connect(self.closeToTrayAction , SIGNAL('toggled(bool)') , self.onCloseToTrayAction) self.connect(self.autoloadAction , SIGNAL('toggled(bool)') , self.onAutoloadAction) self.mOption.addAction(self.ontopAction) self.mOption.addAction(self.showTrayAction) self.mOption.addAction(self.closeToTrayAction) self.mOption.addAction(self.autoloadAction) self.mOption.addSeparator() self.mOption.addMenu(self.mStyle) self.trayIcon = QSystemTrayIcon(QIcon(':/appicon'), self); self.trayMgr = TrayManager(self.config, self.trayIcon) self.connect(self.trayIcon, SIGNAL('activated(QSystemTrayIcon::ActivationReason)'), self.onTrayIcon) if self.config.loadShowTray(): self.trayIcon.show() self.trayIconMenu = QMenu() self.trayIconMenu.addAction(self.tr("e&xit"), self.onExit) self.trayIcon.setContextMenu(self.trayIconMenu) self.mAbout = self.menuBar().addMenu(self.tr("&about")) self.mAbout.addAction(QApplication.applicationName(), self.onAboutAppAction) self.mAbout.addAction("Qt", self.onAboutQtAction) self.createWidgets() self.resize(self.config.loadWindowSize()) self.restoreState(self.config.loadWindowState()) if self.config.loadIsVisible(): self.show() self.reload_()
def main(): QApplication.setStyle(QStyleFactory.create('cleanlooks')) app = QApplication(sys.argv) win = platform.MainWindow() win.show() sys.exit(app.exec_())
visibleRect.setWidth(visibleRect.width()) visibleRect.setHeight(visibleRect.height()) return visibleRect def viewScrollBarsValueChanged(self): try: self.onVisibleRectChanged.emit(QRectF(self.VisibleRect)) except Exception, err: print "EddView.viewScrollBarsValueChanged: ", err def resizeEvent(self, event): self.viewScrollBarsValueChanged() QGraphicsView.resizeEvent(self, event) if __name__ == '__main__': import os import edd.resources.resource_rc app = QApplication(sys.argv) app.setStyle(QStyleFactory.create("plastique")) #sheetContent = open(os.path.join(os.getcwd(), 'resources/edd.stylesheet'), 'r').read() #app.setStyleSheet(sheetContent) mainWin = QMainWindow() mainWin.setCentralWidget(EWidget()) mainWin.show() sys.exit(app.exec_())
import ui_inputdialog_value def fix_value(value, minimum, maximum): if isnan(value): print("Parameter is NaN! - %f" % value) return minimum elif value < minimum: print("Parameter too low! - %f/%f" % (value, minimum)) return minimum elif value > maximum: print("Parameter too high! - %f/%f" % (value, maximum)) return maximum else: return value QPlastiqueStyle = QStyleFactory.create("Plastique") # Custom InputDialog with Scale Points support class CustomInputDialog(QDialog, ui_inputdialog_value.Ui_Dialog): def __init__(self, parent, label, current, minimum, maximum, step, scalepoints): QDialog.__init__(self, parent) self.setupUi(self) self.label.setText(label) self.doubleSpinBox.setMinimum(minimum) self.doubleSpinBox.setMaximum(maximum) self.doubleSpinBox.setValue(current) self.doubleSpinBox.setSingleStep(step) self.ret_value = current
self.loopers = [] self.loopers.append(LooperWidget(self.centralwidget, 0, ui_settings.looper)) self.loopers.append(LooperWidget(self.centralwidget, 1, ui_settings.looper)) for looper in self.loopers: self.verticalLayout.addWidget(looper) self.retranslateUi(SLim) def retranslateUi(self, SLim): for looper in SLim.ui.loopers: looper.retranslateUi() SLim.setWindowTitle(QApplication.translate("SLim", "MainWindow", None, QApplication.UnicodeUTF8)) class ControlMainWindow(QMainWindow): def __init__(self, parent=None): super(ControlMainWindow, self).__init__(parent) self.ui = Ui_SLim() self.ui.setupUi(self) if __name__ == "__main__": QApplication.setStyle(QStyleFactory.create("Cleanlooks")) QApplication.setPalette(QApplication.style().standardPalette()) #QApplication.setStyle(QStyleFactory.create("QtCurve")) #QApplication.setPalette(ui_palette.fPalBlue) #QApplication.setPalette(ui_palette.fPalBlack) app = QApplication(sys.argv) mySW = ControlMainWindow() mySW.show() sys.exit(app.exec_())