WSJT-X/example.py
2013-03-10 15:23:40 +01:00

24 lines
418 B
Python

import sys
from PySide import QtGui
import example_ui
# import the style resources
import style_pyside_rc
# 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
with open("style.qss", 'r') as stylesheet:
app.setStyleSheet(stylesheet.read())
# run
window.show()
app.exec_()