WSJT-X/example.py

24 lines
418 B
Python
Raw Normal View History

2013-03-10 10:23:40 -04:00
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_()