mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-15 08:31:57 -05:00
24 lines
418 B
Python
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_()
|