]> git.saurik.com Git - wxWidgets.git/commitdiff
minor tweaks
authorRobin Dunn <robin@alldunn.com>
Sat, 17 Jul 2004 22:57:33 +0000 (22:57 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 17 Jul 2004 22:57:33 +0000 (22:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/Main.py
wxPython/demo/VListBox.py

index facaf02784b4df094bc7386cd94efd1871b1d77c..e1a23d9fcec6d70aac640e1c502dcaa7a6cfef20 100644 (file)
@@ -918,6 +918,9 @@ class MyApp(wx.App):
         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
index 30cec2b5f3e945383d77f0c5503b15b673433207..fe2112ea5ffbdaa38778e642401e4b7edb967a58 100644 (file)
@@ -14,7 +14,7 @@ class MyVListBox(wx.VListBox):
         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,
@@ -24,11 +24,9 @@ class MyVListBox(wx.VListBox):
     # 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
-
         return height + 5