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.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"