Updated menu to avoid using deprecated wx methods

This commit is contained in:
Manuel Cortez 2022-08-03 09:53:35 -05:00
parent b2da25dd61
commit 769436abf7
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790

View File

@ -11,7 +11,7 @@ class menu(wx.Menu):
def append_options(self, options):
for i in options:
item = wx.MenuItem(self, wx.ID_ANY, "%s (@%s)" % (i[1], i[0]))
self.AppendItem(item)
self.Append(item)
self.Bind(wx.EVT_MENU, lambda evt, temp=i[0]: self.select_text(evt, temp), item)
def select_text(self, ev, text):