diff -r 317148fc1225 -r 9eeaebd867aa TextViewer.py --- 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)