X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d4b73b1b8e585418459362c9bf9173aa21da8c41..2d814c19cc7b8aa54ca452b14e6a99442361d7da:/wxPython/wx/lib/rightalign.py diff --git a/wxPython/wx/lib/rightalign.py b/wxPython/wx/lib/rightalign.py index 646b7505c9..b0969b9a0e 100644 --- a/wxPython/wx/lib/rightalign.py +++ b/wxPython/wx/lib/rightalign.py @@ -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: