Update readme and pypi desc

This commit is contained in:
ColinDuquesnoy 2014-01-02 16:20:29 +01:00
parent a9f8d32608
commit 85bd18532c
2 changed files with 21 additions and 4 deletions

View File

@ -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")

View File

@ -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))
""",
)