]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/rightalign.py
Native wxControl::DoGetBestSize() implementation
[wxWidgets.git] / wxPython / wx / lib / rightalign.py
index 646b7505c95431ec02063baefc78aecf68c0da86..b0969b9a0e69f1fc82211d0aa3a3d8a68c0a6bd4 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.
@@ -88,7 +88,7 @@ class RightTextCtrl(wx.TextCtrl):
 
         dc.SetTextForeground(fclr)
 
-        dc.SetClippingRegion(0, 0, dcwidth, dcheight)
+        dc.SetClippingRegion((0, 0), (dcwidth, dcheight))
         dc.DrawText(text, (x, y))
 
         if x < 0: