Mercurial > libervia-backend
comparison frontends/wix/form.py @ 92:2503de7fb4c7
Tarot game: chien/écart stage
- tarot plugin: new methods/signals tarotGamePlayCards, tarotGameShowCards, tarotGameYourTurn
- tarot plugin: protocole update
- tarot plugin: family renamed in suit
- wix: card_game: card can be selected for écart, card move when mouse is over only if it's our turn
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 29 May 2010 20:53:03 +0930 |
parents | 39c672544593 |
children |
comparison
equal
deleted
inserted
replaced
91:39c672544593 | 92:2503de7fb4c7 |
---|---|
30 | 30 |
31 class Form(wx.Frame): | 31 class Form(wx.Frame): |
32 """Create a form from a SàT xml""" | 32 """Create a form from a SàT xml""" |
33 | 33 |
34 def __init__(self, host, xml_data='', title="Form", options=[], misc={}): | 34 def __init__(self, host, xml_data='', title="Form", options=[], misc={}): |
35 super(Form, self).__init__(None, title=title) | 35 style = wx.DEFAULT_FRAME_STYLE & ~wx.CLOSE_BOX if 'NO_CANCEL' in options else wx.DEFAULT_FRAME_STYLE #FIXME: gof: Q&D tmp hack |
36 super(Form, self).__init__(None, title=title, style=style) | |
36 | 37 |
37 self.host = host | 38 self.host = host |
38 self.options = options | 39 self.options = options |
39 self.misc = misc | 40 self.misc = misc |
40 self.ctl_list = [] # usefull to access ctrl | 41 self.ctl_list = [] # usefull to access ctrl |