From a62f78f2a77f85e24884da048fc867a98bc26dcd Mon Sep 17 00:00:00 2001 From: Sylvain Tricot Date: Mon, 22 Feb 2021 19:02:31 +0100 Subject: [PATCH] Fix use of deprecated MenuItem.GetText(). Replaced by MenuItem.GetItemLabelText() --- src/msspec/iodata.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/msspec/iodata.py b/src/msspec/iodata.py index b15e3c3..cd2a41c 100644 --- a/src/msspec/iodata.py +++ b/src/msspec/iodata.py @@ -1261,7 +1261,7 @@ class _DataWindow(wx.Frame): def on_menu_dataset(self, event): menu_id = event.GetId() - dset_name = self.GetMenuBar().FindItemById(menu_id).GetText() + dset_name = self.GetMenuBar().FindItemById(menu_id).GetItemLabelText() self.show_dataset(dset_name) @@ -1400,7 +1400,6 @@ class _DataWindow(wx.Frame): menu = self.GetMenuBar().GetMenu(menu_id) for item in menu.GetMenuItems(): if item.IsChecked(): - #sb.SetStatusText("%s" % item.GetText(), 1) sb.SetStatusText("%s" % item.GetItemLabelText(), 1) break