Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added style_and_theme - using css to control style example
  • Loading branch information
Shuge Lee committed May 13, 2012
1 parent ea56428 commit bc52edb
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions style_and_theme/css_style.py
@@ -0,0 +1,23 @@
"""
Qt Style Sheet
"""
import sys
from PySide import QtGui

app = QtGui.QApplication(sys.argv)

win = QtGui.QWidget()
x, y, w, h = 100, 100, 200, 50
win.setGeometry(x, y, w, h)

label = QtGui.QLabel("hello", win)
label.move(10, 10)


css = "QLabel { border: 1px solid red; color: blue; }"
win.setStyleSheet(css)

win.show()
win.raise_()

sys.exit(app.exec_())

0 comments on commit bc52edb

Please sign in to comment.