summaryrefslogtreecommitdiff
path: root/tropical/qt/mainwindow.py
diff options
context:
space:
mode:
authorLoïc Guégan <loic.guegan@mailbox.org>2024-09-18 20:38:41 +0200
committerLoïc Guégan <loic.guegan@mailbox.org>2024-09-18 20:38:41 +0200
commitf02e224d757c1098cff503a14322a004e8cccfe3 (patch)
tree06df9d3d8d35545804a63c827cae8cda9d523767 /tropical/qt/mainwindow.py
parent76ddf4fe100d7023451eb3b3134de4a11a7ad852 (diff)
Minor changes
Diffstat (limited to 'tropical/qt/mainwindow.py')
-rw-r--r--tropical/qt/mainwindow.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tropical/qt/mainwindow.py b/tropical/qt/mainwindow.py
index f9f9ac0..2805683 100644
--- a/tropical/qt/mainwindow.py
+++ b/tropical/qt/mainwindow.py
@@ -20,16 +20,14 @@ class MainWindow(QMainWindow):
self.calDrawer=CalDrawer(self, self.calContainer.layout(), env)
self.evtDrawer=EvtDrawer(self.calContainer.layout(), env)
self.show()
- print(self.calDrawer.getSelectionEvents())
def setVersion(self,version):
self.statusbar.showMessage("TropiCal v"+version,0)
def event(self, event):
if event.type() == DaySelectedEvent:
- self.evtDrawer.setEvents(self.calDrawer.getSelectionEvents())
+ self.evtDrawer.setDay(self.calDrawer.getSelection())
return QWidget.event(self,event) #super().event(event)
-
def StartApplication(env):
path = os.path.dirname(os.path.abspath(__file__))+"/designer"