comparison frontends/src/wix/xmlui.py @ 555:1d58758689e9

primitivus, wix: fixed bad defaults values for XMLUI class
author Goffi <goffi@goffi.org>
date Sun, 09 Dec 2012 23:25:51 +0100
parents 2a072735e459
children ca13633d3b6b
comparison
equal deleted inserted replaced
554:caad23285a38 555:1d58758689e9
29 29
30 30
31 class XMLUI(wx.Frame): 31 class XMLUI(wx.Frame):
32 """Create an user interface from a SàT xml""" 32 """Create an user interface 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 = None, misc = None):
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 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(XMLUI, self).__init__(None, title=title, style=style) 36 super(XMLUI, self).__init__(None, title=title, style=style)
37 37
38 self.host = host 38 self.host = host
39 self.options = options 39 self.options = options or []
40 self.misc = misc 40 self.misc = misc or {}
41 self.ctrl_list = {} # usefull to access ctrl 41 self.ctrl_list = {} # usefull to access ctrl
42 42
43 self.sizer = wx.BoxSizer(wx.VERTICAL) 43 self.sizer = wx.BoxSizer(wx.VERTICAL)
44 self.SetSizer(self.sizer) 44 self.SetSizer(self.sizer)
45 self.SetAutoLayout(True) 45 self.SetAutoLayout(True)