comparison frontends/wix/main_window.py @ 219:782319a64ac6

primitivus, wix: added forgotten profile primitivus: fixed screen redraw when showing popup
author Goffi <goffi@goffi.org>
date Mon, 27 Dec 2010 21:14:09 +0100
parents b2e1a13ed596
children
comparison
equal deleted inserted replaced
218:5c68a65548c3 219:782319a64ac6
167 item_id = wx.NewId() 167 item_id = wx.NewId()
168 help_string = self.bridge.getMenuHelp(category, item, type) 168 help_string = self.bridge.getMenuHelp(category, item, type)
169 current_menu.Append(item_id, item, help = help_string) 169 current_menu.Append(item_id, item, help = help_string)
170 #now we register the event 170 #now we register the event
171 def event_answer(e): 171 def event_answer(e):
172 id = self.bridge.callMenu(category, item, type) 172 id = self.bridge.callMenu(category, item, type, self.profile)
173 self.current_action_ids.add(id) 173 self.current_action_ids.add(id)
174 wx.EVT_MENU(self, item_id, event_answer) 174 wx.EVT_MENU(self, item_id, event_answer)
175 175
176 176
177 #events 177 #events