Files
WSJT-X/example/example.py
T

28 lines
507 B
Python
Raw Normal View History

2013-03-10 16:34:10 +01:00
#!/usr/bin/env python
import os
from os.path import abspath, dirname
2013-03-10 15:23:40 +01:00
import sys
2013-03-10 16:34:10 +01:00
sys.path.insert(0, abspath(dirname(abspath(__file__)) + '/../..'))
2013-03-10 15:23:40 +01:00
from PySide import QtGui
2013-03-10 16:34:10 +01:00
import QDarkStyleSheet
2013-03-10 15:23:40 +01:00
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
2013-03-10 16:34:10 +01:00
app.setStyleSheet(QDarkStyleSheet.load_stylesheet(pyside=True))
2013-03-10 15:23:40 +01:00
# run
window.show()
app.exec_()