Moved example in a subdirectory

This commit is contained in:
ColinDuquesnoy
2013-03-10 16:34:10 +01:00
parent 3210eb38bb
commit 6e06a97570
3 changed files with 8 additions and 4 deletions
+27
View File
@@ -0,0 +1,27 @@
#!/usr/bin/env python
import os
from os.path import abspath, dirname
import sys
sys.path.insert(0, abspath(dirname(abspath(__file__)) + '/../..'))
from PySide import QtGui
import QDarkStyleSheet
import example_ui
# 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)
# setup stylesheet
app.setStyleSheet(QDarkStyleSheet.load_stylesheet(pyside=True))
# run
window.show()
app.exec_()