X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b881fc787d2823bdd8a415080b82feee90804a17..8179a16812e66ff0ac32bb09803e95756350c76c:/wxPython/wx/lib/rightalign.py diff --git a/wxPython/wx/lib/rightalign.py b/wxPython/wx/lib/rightalign.py index f002373799..69723c37a6 100644 --- a/wxPython/wx/lib/rightalign.py +++ b/wxPython/wx/lib/rightalign.py @@ -16,6 +16,10 @@ # o 2.5 compatability update. # o Added deprecation warning. # +# 12/20/2003 - Jeff Grimmett (grimmtooth@softhome.net) +# +# o wxRightTextCtrl -> RightTextCtrl +# """ Some time ago, I asked about how to right-align @@ -60,7 +64,7 @@ warnings.warn(warningmsg, DeprecationWarning, stacklevel=2) #---------------------------------------------------------------------- -class wxRightTextCtrl(wx.TextCtrl): +class RightTextCtrl(wx.TextCtrl): def __init__(self, parent, id, *args, **kwargs): wx.TextCtrl.__init__(self, parent, id, *args, **kwargs) self.Bind(wx.EVT_KILL_FOCUS, self.OnKillFocus) @@ -84,7 +88,7 @@ class wxRightTextCtrl(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: