Example #1
0
class Test(QtGui.QWidget):
    def __init__(self, stylesheet):
        QtGui.QWidget.__init__(self)
        self.ui = Ui_Test()
        self.ui.setupUi(self)
        self.ui.styleEdit.setPlainText(stylesheet)

    def on_reload_clicked(self):
        stylesheet = self.ui.styleEdit.toPlainText()
        QtCore.QCoreApplication.instance().setStyleSheet(stylesheet)
Example #2
0
 def __init__(self, stylesheet):
     QtGui.QWidget.__init__(self)
     self.ui = Ui_Test()
     self.ui.setupUi(self)
     self.ui.styleEdit.setPlainText(stylesheet)