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