Commits

Anonymous committed ef66792

Some fixes for wxGTK

  • Participants
  • Parent commits 4116cd8
  • Branches Boa_0-4-0_pre

Comments (0)

Files changed (1)

         self.frame = frameEx.frame
 
     def OnClose(self, event):
-        if self.frameEx.pydocPage:
+        if hasattr(self.frameEx, 'pydocPage') and self.frameEx.pydocPage:
             config = self.frameEx.controller.config
             config.WriteInt('pdRunServer', self.frameEx.pydocPage.runServer)
             config.Flush()
               wxAcceleratorTable([(0, WXK_ESCAPE, wxID_QUITHELP),
                                   (wxACCEL_CTRL, ord('H'), wxID_FOCUSHTML),]))
 
-        if wxPlatform == '__WXMSW__':
-            _none, self.toolbar, self.splitter = self.frame.GetChildren()
-        else:
-            self.toolbar, self.splitter = self.frame.GetChildren()
+        _none, self.toolbar, self.splitter = self.frame.GetChildren()
+
         self.html, nav = self.splitter.GetChildren()
-        self.html = wxPyTypeCast(self.html, 'wxHtmlWindow')
 
         # handle 2.3.3 change
         if isinstance(nav, wxNotebookPtr):
         self.contentsAddBookmark, self.contentsDelBookmark, \
               self.contentsChooseBookmark, self.contentsTree = \
               self.contentsPanel.GetChildren()
-        self.contentsTree = wxPyTypeCast(self.contentsTree, 'wxTreeCtrl')
 
         assert self.navPages.GetPageText(1) == 'Index'
         self.indexPanel = self.navPages.GetPage(1)