diff options
| author | Loïc Guégan <loic.guegan@mailbox.org> | 2024-09-17 14:35:38 +0200 |
|---|---|---|
| committer | Loïc Guégan <loic.guegan@mailbox.org> | 2024-09-17 14:35:38 +0200 |
| commit | 08c3a724eed0b0a2b20de5a72e772ebccf747abc (patch) | |
| tree | 82897d38d44f72b7d7cf849581fb5ed4eca227d6 /tropical/qt/mainwindow.py | |
| parent | 1b97acaa87a8e8740381573bd3d994344b008043 (diff) | |
Minor changes
Diffstat (limited to 'tropical/qt/mainwindow.py')
| -rw-r--r-- | tropical/qt/mainwindow.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tropical/qt/mainwindow.py b/tropical/qt/mainwindow.py index 83a92da..c2662f3 100644 --- a/tropical/qt/mainwindow.py +++ b/tropical/qt/mainwindow.py @@ -14,11 +14,11 @@ import sys, os class MainWindow(QMainWindow): - def __init__(self,uipath, calState): + def __init__(self,uipath, calState, env): super(MainWindow,self).__init__() uic.loadUi(uipath+"/MainWindow.ui",self) self.calDrawer=CalDrawer(self, self.calContainer.layout(),calState) - self.evtDrawer=EvtDrawer(self.calContainer.layout(),calState) + self.evtDrawer=EvtDrawer(self.calContainer.layout(),calState, env) self.calState=calState self.show() @@ -31,7 +31,7 @@ class MainWindow(QMainWindow): return QWidget.event(self,event) #super().event(event) -def StartApplication(version,calState): +def StartApplication(env,calState): path = os.path.dirname(os.path.abspath(__file__))+"/designer" # You need one (and only one) QApplication instance per application. # Pass in sys.argv to allow command line arguments for your app. @@ -39,8 +39,8 @@ def StartApplication(version,calState): app = QApplication(sys.argv) # Create a Qt widget, which will be our window. - window = MainWindow(path, calState) - window.setVersion(version) + window = MainWindow(path, calState, env) + window.setVersion(env.__VERSION__) window.show() # IMPORTANT!!!!! Windows are hidden by default. |
