X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4f504f02b68c0bf933209edee227ec8c0c4f046..d0ee33f5c6908b4ac5e1364381f0ef00942e3936:/wxPython/samples/pydocview/PyDocViewDemo.py?ds=sidebyside diff --git a/wxPython/samples/pydocview/PyDocViewDemo.py b/wxPython/samples/pydocview/PyDocViewDemo.py index 82ee66e596..aa0d2f02b6 100644 --- a/wxPython/samples/pydocview/PyDocViewDemo.py +++ b/wxPython/samples/pydocview/PyDocViewDemo.py @@ -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)) + 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