def __init__(self):
"""Initializes the DocService."""
- wx.EvtHandler.__init__(self)
+ pass
def GetDocumentManager(self):
msgTitle = wx.GetApp().GetAppName()
if not msgTitle:
msgTitle = _("Document Options")
- wx.MessageBox("Document interface changes will not appear until the application is restarted.",
+ wx.MessageBox(_("Document interface changes will not appear until the application is restarted."),
msgTitle,
wx.OK | wx.ICON_INFORMATION,
self.GetParent())
if isinstance(document, ChildDocument) and document.GetParentDocument() == parentDocument:
if document.GetFirstView().GetFrame():
document.GetFirstView().GetFrame().SetFocus()
- if document.GetFirstView().OnClose(deleteWindow = False):
- if document.GetFirstView().GetFrame():
- document.GetFirstView().GetFrame().Close() # wxBug: Need to do this for some random reason
- else:
+ if not document.GetFirstView().OnClose():
return False
return True
"""
Initializes the AboutService.
"""
- DocService.__init__(self)
if aboutDialog:
self._dlg = aboutDialog
self._image = None
"""
Initializes the PropertyService.
"""
- DocService.__init__(self)
self._customEventHandlers = []
"""
Initializes the WindowMenu and its globals.
"""
- DocService.__init__(self)
self.ARRANGE_WINDOWS_ID = wx.NewId()
self.SELECT_WINDOW_1_ID = wx.NewId()
self.SELECT_WINDOW_2_ID = wx.NewId()