Mercurial > libervia-backend
diff frontends/wix/main_window.py @ 91:39c672544593
Tarot: bidding phase
- quick_app: command line is now parsed, "profile" option allow to select it
- xml_tools: list-single is now managed
- plugin tarot: method and signal to manage contract (contrat): tarotChooseContrat & tarotGameContratChoosed
- wix: Q&D Form hack to manage more generic form (not only registration), used to show contract selection form
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 27 May 2010 19:26:19 +0930 |
parents | 4020931569b8 |
children | 783e9d6980ec |
line wrap: on
line diff
--- a/frontends/wix/main_window.py Sun May 23 16:39:05 2010 +0930 +++ b/frontends/wix/main_window.py Thu May 27 19:26:19 2010 +0930 @@ -109,10 +109,10 @@ self.profile_pan = ProfileManager(self) #self.profile_pan.Hide() #gof: self.sizer.Add(self.profile_pan, 1, flag=wx.EXPAND) + if self.options.profile: #TODO: move this to quick_app + self.plug_profile(self.options.profile) + - #Tarot = CardGame(self) - #Tarot.Show()#gof: temp for test - self.Show() def plug_profile(self, profile_key='@DEFAULT@'): @@ -269,7 +269,14 @@ elif type == "FORM": self.current_action_ids.remove(id) debug (_("Form received")) - form=Form(self, title=_('Registration'), target = data['target'], type = data['type'], xml_data = data['xml']) + misc = {} + #FIXME FIXME FIXME: must clean all this crap ! + title = _('Form') + if data['type'] == _('registration'): + title = 'Registration' + misc['target'] = data['target'] + misc['action_back'] = self.bridge.gatewayRegister + form=Form(self, title=title, xml_data = data['xml'], misc = misc) elif type == "RESULT": self.current_action_ids.remove(id) if self.current_action_ids_cb.has_key(id):