mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-29 15:05:40 -04:00
Moved example in a subdirectory
This commit is contained in:
Executable
+27
@@ -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_()
|
||||
Reference in New Issue
Block a user