Changeset 130
- Timestamp:
- Sun Sep 30 06:02:51 2007
- Files:
-
- branches/mbutscher/work/lib/pwiki/PersonalWikiFrame.py (modified) (diff)
- branches/mbutscher/work/lib/pwiki/customtreectrl.py (modified) (diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
branches/mbutscher/work/lib/pwiki/PersonalWikiFrame.py
r129 r130 4769 4769 else: 4770 4770 self._prepareExitWiki() 4771 # self.Show(True)4772 4771 evt.Skip() 4773 # self.Destroy() 4772 4773 self.Destroy() 4774 4774 4775 4775 4776 def exitWiki(self): … … 4835 4836 if self.tbIcon.IsIconInstalled(): 4836 4837 self.tbIcon.RemoveIcon() 4837 4838 4837 4838 self.tbIcon.Destroy() 4838 4839 sleep(0.01) -
branches/mbutscher/work/lib/pwiki/customtreectrl.py
r127 r130 1886 1886 1887 1887 # Default CustomTreeCtrl background colour. 1888 self._backgroundColour = wx.WHITE 1889 1888 # self._backgroundColour = wx.WHITE 1889 self._backgroundColour = wx.SystemSettings.GetColour( 1890 wx.SYS_COLOUR_WINDOW) 1891 1890 1892 # Background image settings 1891 1893 self._backgroundImage = None … … 1966 1968 self.Bind(wx.EVT_PAINT, self.OnPaint) 1967 1969 self.Bind(wx.EVT_ERASE_BACKGROUND, self.OnEraseBackground) 1970 self.Bind(wx.EVT_SYS_COLOUR_CHANGED, self.OnSysColourChanged) 1968 1971 self.Bind(wx.EVT_MOUSE_EVENTS, self.OnMouse) 1969 1972 self.Bind(wx.EVT_KEY_DOWN, self.OnKeyDown) … … 4789 4792 # dc = wx.PaintDC(self) 4790 4793 dc = wx.BufferedPaintDC(self) 4791 dc.SetBackground(wx.WHITE_BRUSH) 4794 bgBrush = wx.Brush(self._backgroundColour) 4795 dc.SetBackground(bgBrush) 4792 4796 dc.Clear() 4793 4797 dc.SetBackground(wx.NullBrush) … … 4829 4833 4830 4834 4835 def OnSysColourChanged(self, evt): 4836 self._backgroundColour = wx.SystemSettings.GetColour( 4837 wx.SYS_COLOUR_WINDOW) 4838 self.Refresh() 4839 4840 4831 4841 def TileBackground(self, dc): 4832 4842 """Tiles the background image to fill all the available area."""
