mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-09-27 07:36:38 -04:00
Update readme and pypi desc
This commit is contained in:
parent
a9f8d32608
commit
85bd18532c
19
README.md
19
README.md
@ -1,6 +1,8 @@
|
|||||||
QDarkStylesheet
|
QDarkStylesheet
|
||||||
==================
|
==================
|
||||||
|
|
||||||
|
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/ColinDuquesnoy/qdarkstylesheet/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
|
||||||
|
|
||||||
A dark stylesheet for Qt applications.
|
A dark stylesheet for Qt applications.
|
||||||
|
|
||||||
|
|
||||||
@ -53,9 +55,20 @@ window.show()
|
|||||||
app.exec_()
|
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
|
```Python
|
||||||
only need to have PySide installed on your system._
|
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:
|
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")
|
![alt text](/screenshots/01.png "Screenshot 01")
|
||||||
|
|
||||||
|
|
||||||
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/ColinDuquesnoy/qdarkstylesheet/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
|
|
||||||
|
|
||||||
|
6
setup.py
6
setup.py
@ -43,6 +43,10 @@ setup(
|
|||||||
All you have to do is the following::
|
All you have to do is the following::
|
||||||
|
|
||||||
import qdarkstyle
|
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))
|
||||||
""",
|
""",
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user