X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/372bde9b72b67036482dcc170f6260846e7a3b64..b4eecebd423df0c6efe86d7658cd3df818d67ed8:/wxPython/demo/GridStdEdRend.py diff --git a/wxPython/demo/GridStdEdRend.py b/wxPython/demo/GridStdEdRend.py index 3e0f2f294b..6a89c3e122 100644 --- a/wxPython/demo/GridStdEdRend.py +++ b/wxPython/demo/GridStdEdRend.py @@ -1,8 +1,3 @@ -# 11/25/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Updated for V2.5 -# o There is one wx.Size() I haven't figured out how to get rid of yet. -# import random @@ -31,7 +26,7 @@ class MyCustomRenderer(gridlib.PyGridCellRenderer): 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: