[Commits] (alecf) attempt to fix 2859 - call Refresh() after selecting a color, to force a repaint.

commits at osafoundation.org commits at osafoundation.org
Thu Apr 21 17:48:10 PDT 2005


Commit by: alecf
Modified files:
chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py 1.77 1.78

Log message:
attempt to fix 2859 - call Refresh() after selecting a color, to force a repaint.

Bugzilla links:
http://bugzilla.osafoundation.org/show_bug.cgi?id=2859

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py.diff?r1=text&tr1=1.77&r2=text&tr2=1.78

Index: chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py
diff -u chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py:1.77 chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py:1.78
--- chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py:1.77	Wed Apr 20 18:16:22 2005
+++ chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py	Thu Apr 21 17:48:08 2005
@@ -1,8 +1,8 @@
 """ Canvas for calendaring blocks
 """
 
-__version__ = "$Revision: 1.77 $"
-__date__ = "$Date: 2005/04/21 01:16:22 $"
+__version__ = "$Revision: 1.78 $"
+__date__ = "$Date: 2005/04/22 00:48:08 $"
 __copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -820,6 +820,9 @@
         
     def OnSelectColor(self, event):
         self.blockItem.setEventsColor(event.GetValue())
+        
+        # just cause a repaint - hopefully this cascades to child windows?
+        self.Refresh()
 
 class wxWeekHeaderWidgets(wx.Panel):
 



More information about the Commits mailing list