author | etisserant |
Thu, 23 Aug 2007 09:50:35 +0200 | |
changeset 79 | b22f661cbcfb |
parent 78 | 049f2e7090a2 |
child 80 | c798a68c5560 |
TextViewer.py | file | annotate | diff | comparison | revisions |
--- a/TextViewer.py Thu Aug 23 09:39:18 2007 +0200 +++ b/TextViewer.py Thu Aug 23 09:50:35 2007 +0200 @@ -142,7 +142,8 @@ self.SetModEventMask(wx.stc.STC_MOD_BEFOREINSERT|wx.stc.STC_MOD_BEFOREDELETE) - self.Bind(wx.stc.EVT_STC_STYLENEEDED, self.OnStyleNeeded, id=ID_TEXTVIEWER) + self.Bind(wx.stc.EVT_STC_STYLENEEDED, self.OnStyleNeeded, id=ID_TEXTVIEWER) + if window and controler : self.Bind(wx.EVT_KEY_DOWN, self.OnKeyDown) self.Bind(wx.stc.EVT_STC_DO_DROP, self.OnDoDrop, id=ID_TEXTVIEWER)