From 171fbd28a33bd71a2b17b35c558c2029f4b72a0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Gu=C3=A9gan?= Date: Tue, 17 Sep 2024 14:42:00 +0200 Subject: [PATCH] Minor changes --- tropical/qt/eventdrawer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tropical/qt/eventdrawer.py b/tropical/qt/eventdrawer.py index 07ba449..331139f 100644 --- a/tropical/qt/eventdrawer.py +++ b/tropical/qt/eventdrawer.py @@ -23,6 +23,7 @@ class EvtDrawerScene(QGraphicsScene): super().__init__(None) self.calState=calState self.env=env + self.eventsRect=list() def drawForeground(self, painter, rect): origXF, origYF, widthF, heightF = rect.getRect() @@ -46,7 +47,8 @@ class EvtDrawerScene(QGraphicsScene): eventHeight=80 colorWidth=20 for e in self.env.listEventsOn(2024,10,1): - painter.drawRect(x+po,y+po,width-po*2,eventHeight-po*2) + r=QRect(x+po,y+po,width-po*2,eventHeight-po*2) + painter.drawRect(r) class EvtDrawer():