-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDC_Stats.py
More file actions
36 lines (28 loc) · 874 Bytes
/
DC_Stats.py
File metadata and controls
36 lines (28 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /usr/bin/env python
"""
Launch rantest GUI: PyQt5 or Tk.
"""
import sys
if __name__ == "__main__":
print ("Using Python version ", sys.version)
try:
from PyQt5 import QtGui #import *
print ("Imported Pyqt5 QtGui")
from PyQt5.QtWidgets import QApplication
print ("Imported Pyqt5 QtWidgets QApplication")
from GUI import QTrantest
print ("Imported DC-Stats GUI")
app = QApplication(sys.argv)
form = QTrantest.RantestQT()
form.show()
app.exec_()
except:
if sys.version_info[0] < 3:
from Tkinter import *
else:
from tkinter import *
from GUI.DC_Stats_Tk import *
# initiate main frame
master = Tk()
app = DCP(master)
master.mainloop()