X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/74b8945829b602ebeae29f0237fbb8ff3f041f87..6a9e7de98807c5aab7cbe087cf5d3a75c4aaeaf7:/wxPython/wx/lib/pydocview.py diff --git a/wxPython/wx/lib/pydocview.py b/wxPython/wx/lib/pydocview.py index 94e41b48ba..3e7b7b8fb8 100644 --- a/wxPython/wx/lib/pydocview.py +++ b/wxPython/wx/lib/pydocview.py @@ -252,8 +252,7 @@ class OptionsDialog(wx.Dialog): sizer = wx.BoxSizer(wx.VERTICAL) optionsNotebook = wx.Notebook(self, -1, size = (310, 375), style = wx.NB_MULTILINE) - optionsNotebookSizer = wx.NotebookSizer(optionsNotebook) - sizer.Add(optionsNotebookSizer, 0, wx.ALL | wx.EXPAND, SPACE) + sizer.Add(optionsNotebook, 0, wx.ALL | wx.EXPAND, SPACE) for optionsPanelClass in optionsPanelClasses: optionsPanel = optionsPanelClass(optionsNotebook, -1) self._optionsPanels.append(optionsPanel) @@ -559,6 +558,7 @@ class DocApp(wx.PySimpleApp): service.OnExit() config = wx.ConfigBase_Get() self._docManager.FileHistorySave(config) + del self._singleInstanceChecker def GetDefaultDocManagerFlags(self):