]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/stattext.py
Aquire the GIL before raising the NotImplementedError exception
[wxWidgets.git] / wxPython / wx / lib / stattext.py
index ddf2642525a1c964524903d16e988c02dcba7719..5a87aa9e03a41cab14c71836f1dd5c554a5a55c3 100644 (file)
 # Copyright:   (c) 2002 by Total Control Software
 # Licence:     wxWindows license
 #----------------------------------------------------------------------
 # 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
 
 
 import wx
 
@@ -52,8 +54,8 @@ class GenStaticText(wx.PyControl):
         if rh == -1: rh = bh
         self.SetSize(wx.Size(rw, rh))
 
         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):
 
 
     def SetLabel(self, label):