]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/rightalign.py
wxCheckListBox doesn't require wxUSE_OWNER_DRAWN when using WXUNIVERSAL
[wxWidgets.git] / wxPython / wx / lib / rightalign.py
index 69723c37a6547ebc44bf881a6b5eaad7aedbbf3a..6ee642acd4fc738ac7ac9f7ec279fea3998b14cd 100644 (file)
@@ -37,7 +37,7 @@ left-aligned if it has focus.
 Hope this can help someone, as much as this list helps me.
 
 Josu Oyanguren
-Ubera Servicios Informรกticos.
+Ubera Servicios Informaticos.
 
 
 P.S.  This only works well on wxMSW.
@@ -89,17 +89,17 @@ class RightTextCtrl(wx.TextCtrl):
         dc.SetTextForeground(fclr)
 
         dc.SetClippingRegion((0, 0), (dcwidth, dcheight))
-        dc.DrawText(text, (x, y))
+        dc.DrawText(text, x, y)
 
         if x < 0:
             toofat = '...'
             markwidth = dc.GetTextExtent(toofat)[0]
             dc.SetPen(wx.Pen(dc.GetBackground().GetColour(), 1, wx.SOLID ))
-            dc.DrawRectangle((0,0), (markwidth, dcheight))
+            dc.DrawRectangle(0,0, markwidth, dcheight)
             dc.SetPen(wx.Pen(wx.RED, 1, wx.SOLID ))
             dc.SetBrush(wx.TRANSPARENT_BRUSH)
-            dc.DrawRectangle((1, 1), (dcwidth-2, dcheight-2))
-            dc.DrawText(toofat, (1, y))
+            dc.DrawRectangle(1, 1, dcwidth-2, dcheight-2)
+            dc.DrawText(toofat, 1, y)
 
 
     def OnKillFocus(self, event):