TextViewer.py
changeset 699 649399ffdaf0
parent 696 8865c406f616
child 704 aca0c83ed82e
--- a/TextViewer.py	Tue May 29 17:11:37 2012 +0200
+++ b/TextViewer.py	Wed May 30 12:20:27 2012 +0200
@@ -117,6 +117,7 @@
     def _init_Editor(self, prnt):
         self.Editor = wx.stc.StyledTextCtrl(id=ID_TEXTVIEWERTEXTCTRL, 
                 parent=prnt, name="TextViewer", size=wx.Size(0, 0), style=0)
+        self.Editor.ParentWindow = self
         
         self.Editor.CmdKeyAssign(ord('+'), wx.stc.STC_SCMOD_CTRL, wx.stc.STC_CMD_ZOOMIN)
         self.Editor.CmdKeyAssign(ord('-'), wx.stc.STC_SCMOD_CTRL, wx.stc.STC_CMD_ZOOMOUT)