X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..3a04f1432d64cb06c275cfd3320490a0c350db7a:/wxPython/wx/lib/stattext.py diff --git a/wxPython/wx/lib/stattext.py b/wxPython/wx/lib/stattext.py index ddf2642525..5a87aa9e03 100644 --- a/wxPython/wx/lib/stattext.py +++ b/wxPython/wx/lib/stattext.py @@ -11,9 +11,11 @@ # Copyright: (c) 2002 by Total Control Software # Licence: wxWindows license #---------------------------------------------------------------------- - -""" -""" +# 12/12/2003 - Jeff Grimmett (grimmtooth@softhome.net) +# +# o 2.5 compatability update. +# o Untested. +# import wx @@ -52,8 +54,8 @@ class GenStaticText(wx.PyControl): if rh == -1: rh = bh self.SetSize(wx.Size(rw, rh)) - wx.EVT_ERASE_BACKGROUND(self, self.OnEraseBackground) - wx.EVT_PAINT(self, self.OnPaint) + self.Bind(wx.EVT_ERASE_BACKGROUND, self.OnEraseBackground) + self.Bind(wx.EVT_PAINT, self.OnPaint) def SetLabel(self, label):