]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/samples/pydocview/PyDocViewDemo.py
Typo correction patch [ 1208110 ] Lots of typo corrections
[wxWidgets.git] / wxPython / samples / pydocview / PyDocViewDemo.py
index 7f7790d145a21f1dbdeebe9fd80f7c0f116a5215..744d540d64b1137817efa103e1f20daa5c2b3528 100644 (file)
@@ -33,8 +33,8 @@ class TextEditorApplication(pydocview.DocApp):
         pydocview.DocApp.OnInit(self)
 
         # Show the splash dialog while everything is loading up
-        if os.path.exists("splash.jpg"):
-            self.ShowSplash("splash.jpg")
+        if os.path.exists("splash.png"):
+            self.ShowSplash("splash.png")
 
         # Set the name and the icon
         self.SetAppName(_("wxPython PyDocView Demo"))
@@ -60,7 +60,7 @@ class TextEditorApplication(pydocview.DocApp):
         # Install services - these can install menu and toolbar items
         textService           = self.InstallService(TextEditor.TextService())
         findService           = self.InstallService(FindService.FindService())
-        optionsService        = self.InstallService(pydocview.DocOptionsService())
+        optionsService        = self.InstallService(pydocview.DocOptionsService(supportedModes=wx.lib.docview.DOC_MDI))
         windowMenuService     = self.InstallService(pydocview.WindowMenuService())
         filePropertiesService = self.InstallService(pydocview.FilePropertiesService())
         if os.path.exists("splash.jpg"):