TextViewer.py
changeset 113 9eeaebd867aa
parent 98 ec5d7af033d8
child 116 58b9b84e385f
--- a/TextViewer.py	Wed Oct 24 15:59:46 2007 +0200
+++ b/TextViewer.py	Wed Oct 24 16:00:00 2007 +0200
@@ -91,6 +91,13 @@
 
 class TextViewer(wx.stc.StyledTextCtrl):
     
+    if wx.VERSION < (2, 6, 0):
+        def Bind(self, event, function, id = None):
+            if id is not None:
+                event(self, id, function)
+            else:
+                event(self, function)
+    
     def __init__(self, parent, window, controler):
         wx.stc.StyledTextCtrl.__init__(self, parent, ID_TEXTVIEWER, size=wx.Size(0, 0), style=0)