diff frontends/src/wix/main_window.py @ 802:9007bb133009

core, frontends: XMLUI refactoring: - XMLUI now use objects with 2 main classes: widgets (button, label, etc), and container which contain widgets according to a layout - widgets and containers classes are found through introspection, thereby it's really easy to add a new one - there is still the AddWidgetName helper, for example AddText('jid', 'test@example.net') will add a StringWidget with name "jid" and default value "test@example.net" - container can be inside other containers. changeContainer change the first parent container
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2014 18:19:00 +0100
parents 46aa5ada61bf
children be4c5e24dab9
line wrap: on
line diff
--- a/frontends/src/wix/main_window.py	Tue Feb 04 18:06:12 2014 +0100
+++ b/frontends/src/wix/main_window.py	Tue Feb 04 18:19:00 2014 +0100
@@ -160,7 +160,7 @@
             help_string = self.bridge.getMenuHelp(id_, '')
             current_menu.Append(item_id, name, help=help_string)
             #now we register the event
-            def event_answer(e):
+            def event_answer(e, id_=id_):
                 self.launchAction(id_, None, profile_key = self.profile)
 
             wx.EVT_MENU(self, item_id, event_answer)