PLCOpenEditor.py
changeset 699 649399ffdaf0
parent 695 8848ffb7ae2a
child 700 cf3db1775105
--- a/PLCOpenEditor.py	Tue May 29 17:11:37 2012 +0200
+++ b/PLCOpenEditor.py	Wed May 30 12:20:27 2012 +0200
@@ -272,7 +272,7 @@
     def ShortcutKeyFunction(self, event):
         control = self.FindFocus()
         if control is not None and control.GetName() in ["Viewer", "TextViewer"]:
-            getattr(control.Parent, viewer_function)()
+            getattr(control.ParentWindow, viewer_function)()
         elif isinstance(control, wx.stc.StyledTextCtrl):
             getattr(control, viewer_function)()
         elif isinstance(control, wx.TextCtrl):