From 85bd18532c2f113f3d04759efb5f9590f11c0cbe Mon Sep 17 00:00:00 2001 From: ColinDuquesnoy Date: Thu, 2 Jan 2014 16:20:29 +0100 Subject: [PATCH] Update readme and pypi desc --- README.md | 19 ++++++++++++++++--- setup.py | 6 +++++- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fcb5b97fa..8bd3956fa 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ QDarkStylesheet ================== +[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/ColinDuquesnoy/qdarkstylesheet/trend.png)](https://bitdeli.com/free "Bitdeli Badge") + A dark stylesheet for Qt applications. @@ -53,9 +55,20 @@ window.show() app.exec_() ``` +To use PyQt4 instead of PySide, you just need to replace -_There is an example included in the example folder. You can run the script without installing qdarkstyle. You -only need to have PySide installed on your system._ +```Python +app.setStyleSheet(qdarkstyle.load_stylesheet()) +``` + +by + +```Python +app.setStyleSheet(qdarkstyle.load_stylesheet(pyside=False)) +``` + +_There is an example included in the *example* folder. You can run the script without installing qdarkstyle. You +only need to have PySide or PyQt4 installed on your system._ Status: ------------- @@ -108,5 +121,5 @@ I have used this stylesheet for an internal tool at work. Are are a few screensh ![alt text](/screenshots/01.png "Screenshot 01") -[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/ColinDuquesnoy/qdarkstylesheet/trend.png)](https://bitdeli.com/free "Bitdeli Badge") + diff --git a/setup.py b/setup.py index 8b28b679b..630b275d0 100644 --- a/setup.py +++ b/setup.py @@ -43,6 +43,10 @@ setup( All you have to do is the following:: import qdarkstyle - QtGui.QApplication().instance().setStyleSheet(qdarkstyle.load_stylesheet()) + app = QtGui.QApplication().instance() + # PySide + app.setStyleSheet(qdarkstyle.load_stylesheet()) + # PyQt4 + app.setStyleSheet(qdarkstyle.load_stylesheet(pyside=False)) """, )