]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/samples/pydocview/PyDocViewDemo.py
'[1219035] cleanup: miscellaneous' and minor source cleaning.
[wxWidgets.git] / wxPython / samples / pydocview / PyDocViewDemo.py
index 82ee66e596312bd0a13896d6bc0531b35f39e32a..aa0d2f02b697422f7109fa6babd89c8b788d5e1b 100644 (file)
@@ -90,6 +90,8 @@ class TextEditorApplication(pydocview.DocApp):
         if os.path.exists("tips.txt"):
             wx.CallAfter(self.ShowTip, wx.GetApp().GetTopWindow(), wx.CreateFileTipProvider("tips.txt", 0))
 
         if os.path.exists("tips.txt"):
             wx.CallAfter(self.ShowTip, wx.GetApp().GetTopWindow(), wx.CreateFileTipProvider("tips.txt", 0))
 
+        wx.UpdateUIEvent.SetUpdateInterval(400)  # Overhead of updating menus was too much.  Change to update every 400 milliseconds.
+
         # Tell the framework that everything is great
         return True
 
         # Tell the framework that everything is great
         return True