git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28292
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
the main frame when it is time to do so.
"""
the main frame when it is time to do so.
"""
+ # For debugging
+ #self.SetAssertMode(wx.PYAPP_ASSERT_DIALOG)
+
# Normally when using a SplashScreen you would create it, show
# it and then continue on with the applicaiton's
# initialization, finally creating and showing the main
# Normally when using a SplashScreen you would create it, show
# it and then continue on with the applicaiton's
# initialization, finally creating and showing the main
if self.GetSelection() == n:
c = wx.SystemSettings.GetColour(wx.SYS_COLOUR_HIGHLIGHTTEXT)
else:
if self.GetSelection() == n:
c = wx.SystemSettings.GetColour(wx.SYS_COLOUR_HIGHLIGHTTEXT)
else:
- c = self.GetForegroundColour()#wx.SystemSettings.GetColour(wx.SYS_COLOUR_HIGHLIGHTTEXT)
+ c = self.GetForegroundColour()
dc.SetFont(self.GetFont())
dc.SetTextForeground(c)
dc.DrawLabel(self._getItemText(n), rect,
dc.SetFont(self.GetFont())
dc.SetTextForeground(c)
dc.DrawLabel(self._getItemText(n), rect,
# required to draw the n'th item.
def OnMeasureItem(self, n):
height = 0
# required to draw the n'th item.
def OnMeasureItem(self, n):
height = 0
for line in self._getItemText(n).split('\n'):
w, h = self.GetTextExtent(line)
height += h
for line in self._getItemText(n).split('\n'):
w, h = self.GetTextExtent(line)
height += h