]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/GridStdEdRend.py
Fix "warning: operation on 'y' may be undefined".
[wxWidgets.git] / wxPython / demo / GridStdEdRend.py
index 6b5110a3f25651562c94c5f32557fcc32ad01ef2..6a89c3e122ec869c235524aa632fa14160a65716 100644 (file)
@@ -26,7 +26,7 @@ class MyCustomRenderer(gridlib.PyGridCellRenderer):
 
         for ch in text:
             dc.SetTextForeground(random.choice(colors))
 
         for ch in text:
             dc.SetTextForeground(random.choice(colors))
-            dc.DrawText(ch, (x, y))
+            dc.DrawText(ch, x, y)
             w, h = dc.GetTextExtent(ch)
             x = x + w
             if x > rect.right - 5:
             w, h = dc.GetTextExtent(ch)
             x = x + w
             if x > rect.right - 5: