From 15b5f94e3b93434c833b75171ec5b6e35da9cf47 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 13 Oct 2020 13:22:31 -0700 Subject: [PATCH] minor demo tweaks --- demo/Main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/Main.py b/demo/Main.py index a3a4ec9d..4edce53a 100644 --- a/demo/Main.py +++ b/demo/Main.py @@ -384,7 +384,7 @@ def GetCaretPeriod(win = None): # attempt to average. # (wx systemsettings allows on and off time, but scintilla just takes a single period.) - return (onmsec + offmsec) / 2.0 + return int((onmsec + offmsec) / 2.0) except AttributeError: # Issue where wx.SYS_CARET_ON/OFF_MSEC is unavailable. @@ -1726,7 +1726,7 @@ class wxPythonDemo(wx.Frame): perspectivesMenu.Append(item) self.Bind(wx.EVT_MENU, self.OnAUIPerspectives, item) - menu.Append(wx.ID_ANY, "&AUI Perspectives", perspectivesMenu) + menu.AppendSubMenu(perspectivesMenu, "&AUI Perspectives") self.perspectives_menu = perspectivesMenu item = wx.MenuItem(menu, -1, 'Save Perspective', 'Save AUI perspective')