]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ColourDB.py
Warning fixes after char->wxChar in wxVariant.
[wxWidgets.git] / wxPython / demo / ColourDB.py
index e00652c734d3cf25cda6f7b9b32893f1383a1475..6faf3e464ba702aa50a5fef21334950feddffc66 100644 (file)
@@ -53,6 +53,7 @@ class TestWindow(wx.ScrolledWindow):
             
         # Event handlers - moved here so events won't fire before init is 
         # finished.
+        self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
         self.Bind(wx.EVT_PAINT, self.OnPaint)
         self.Bind(wx.EVT_ERASE_BACKGROUND, self.OnEraseBackground)
 
@@ -73,7 +74,7 @@ class TestWindow(wx.ScrolledWindow):
         while x < sz.width:
             y = -dy
             while y < sz.height:
-                dc.DrawBitmap(self.bg_bmp, (x, y))
+                dc.DrawBitmap(self.bg_bmp, x, y)
                 y = y + h
 
             x = x + w
@@ -121,13 +122,12 @@ class TestWindow(wx.ScrolledWindow):
             clr = colours[line]
             y = (line+1) * self.lineHeight + 2
 
-            # Updated for 2.5 - now takes tuple for pos
-            dc.DrawText(clr, (self.cellWidth, y))
+            dc.DrawText(clr, self.cellWidth, y)
 
             brush = wx.Brush(clr, wx.SOLID)
             dc.SetBrush(brush)
-            dc.DrawRectangle((12 * self.cellWidth, y),
-                             (6 * self.cellWidth, self.textHeight))
+            dc.DrawRectangle(12 * self.cellWidth, y,
+                             6 * self.cellWidth, self.textHeight)
 
         dc.EndDrawing()