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
This commit is contained in:
parent
6b1d48c456
commit
2f2a611ba3
1 changed files with 195 additions and 36 deletions
|
|
@ -109,10 +109,10 @@ class MainWindow(wx.Frame, QuickApp):
|
|||
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 @@ class MainWindow(wx.Frame, QuickApp):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue