# 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
#----------------------------------------------------------------------
-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)
dc.SetTextForeground(fclr)
- dc.SetClippingRegion(0, 0, dcwidth, dcheight)
+ dc.SetClippingRegion((0, 0), (dcwidth, dcheight))
dc.DrawText(text, (x, y))
if x < 0: