summaryrefslogtreecommitdiff
path: root/tropical/qt/mainwindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'tropical/qt/mainwindow.py')
-rw-r--r--tropical/qt/mainwindow.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tropical/qt/mainwindow.py b/tropical/qt/mainwindow.py
index 7089b24..4056bca 100644
--- a/tropical/qt/mainwindow.py
+++ b/tropical/qt/mainwindow.py
@@ -4,7 +4,7 @@
from PyQt6.QtWidgets import QApplication, QWidget, QMainWindow
from PyQt6 import uic, QtGui
from PyQt6.QtCore import Qt
-from .caldrawer import CalDrawer
+from .caldrawer import *
from .eventdrawer import EvtDrawer
from .createcalendar import CreateCalendar
@@ -17,13 +17,19 @@ class MainWindow(QMainWindow):
def __init__(self,uipath, calState):
super(MainWindow,self).__init__()
uic.loadUi(uipath+"/MainWindow.ui",self)
- self.calDrawer=CalDrawer(self.calContainer.layout(),calState)
+ self.calDrawer=CalDrawer(self, self.calContainer.layout(),calState)
self.evtDrawer=EvtDrawer(self.calContainer.layout(),calState)
self.calState=calState
self.show()
def setVersion(self,version):
self.statusbar.showMessage("Calanus v"+version,0)
+
+ def event(self, event):
+ if event.type() == DaySelectedEvent:
+ print("Ho")
+ return QWidget.event(self,event) #super().event(event)
+
def StartApplication(version,calState):
path = os.path.dirname(os.path.abspath(__file__))+"/designer"