Add style for QPushButton:checked

and update example

Fix #26
This commit is contained in:
ColinDuquesnoy
2015-06-23 21:44:34 +02:00
parent 47e67fc8a6
commit f3bf9129d3
11 changed files with 1185 additions and 1017 deletions
Executable → Regular
+3 -4
View File
@@ -32,7 +32,7 @@ Requirements:
- Python 2 or Python 3
- PySide
.. note.. :: qdarkstyle does not have to be installed to run
.. note.. :: qdarkstyle does not have to be installed to run
the example
"""
@@ -55,7 +55,7 @@ def main():
# create the application and the main window
app = QtGui.QApplication(sys.argv)
window = QtGui.QMainWindow()
# setup ui
ui = example_ui.Ui_MainWindow()
ui.setupUi(window)
@@ -79,7 +79,7 @@ def main():
# setup stylesheet
app.setStyleSheet(qdarkstyle.load_stylesheet(pyside=True))
# auto quit after 2s when testing on travis-ci
# auto quit after 2s when testing on travis-ci
if "--travis" in sys.argv:
QtCore.QTimer.singleShot(2000, app.exit)
@@ -90,4 +90,3 @@ def main():
if __name__ == "__main__":
main()