2023-08-03 13:37:46 +05:00
|
|
|
import gui_base
|
|
|
|
|
2022-11-08 15:52:05 +05:00
|
|
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
|
|
|
from PyQt5.QtWidgets import QApplication
|
|
|
|
|
|
|
|
import sys
|
|
|
|
|
2023-08-03 13:37:46 +05:00
|
|
|
# GUI constructor from generated gui_base file
|
|
|
|
# doesn't really need to exist but its here now
|
2022-11-10 16:26:28 +05:00
|
|
|
class GUI(QtWidgets.QMainWindow, gui_base.Ui_MainWindow):
|
2022-11-08 15:52:05 +05:00
|
|
|
def __init__(self, parent=None):
|
|
|
|
super().__init__(parent)
|
|
|
|
self.setupUi(self)
|
|
|
|
|
2023-08-03 13:37:46 +05:00
|
|
|
# test code
|
2022-11-08 15:52:05 +05:00
|
|
|
def main():
|
|
|
|
app = QApplication(sys.argv)
|
|
|
|
gui = ExampleApp()
|
|
|
|
gui.show()
|
|
|
|
app.exec_()
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|
|
|
|
|