diff -r 314af37f7db2 -r 649399ffdaf0 PLCOpenEditor.py --- 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):