Beremiz.py
changeset 193 ca6ad333aa80
parent 188 e152b46cd9b0
child 197 a50b5fa04c57
equal deleted inserted replaced
192:f0482f1ae901 193:ca6ad333aa80
   977             else:
   977             else:
   978                 element_path = element_infos["name"]
   978                 element_path = element_infos["name"]
   979             if element_infos["type"] == "element":
   979             if element_infos["type"] == "element":
   980                 staticbox = wx.StaticBox(id=-1, label=element_infos["name"], 
   980                 staticbox = wx.StaticBox(id=-1, label=element_infos["name"], 
   981                     name='%s_staticbox'%element_infos["name"], parent=parent,
   981                     name='%s_staticbox'%element_infos["name"], parent=parent,
   982                     pos=wx.Point(0, 0), size=wx.Size(0, 0), style=0)
   982                     pos=wx.Point(0, 0), size=wx.Size(10, 0), style=0)
   983                 staticboxsizer = wx.StaticBoxSizer(staticbox, wx.VERTICAL)
   983                 staticboxsizer = wx.StaticBoxSizer(staticbox, wx.VERTICAL)
   984                 if first:
   984                 if first:
   985                     sizer.AddSizer(staticboxsizer, 0, border=0, flag=wx.GROW|wx.TOP)
   985                     sizer.AddSizer(staticboxsizer, 0, border=0, flag=wx.GROW|wx.TOP)
   986                 else:
   986                 else:
   987                     sizer.AddSizer(staticboxsizer, 0, border=0, flag=wx.GROW)
   987                     sizer.AddSizer(staticboxsizer, 0, border=0, flag=wx.GROW)
  1011                     if len(element_infos["type"]) > 0 and isinstance(element_infos["type"][0], types.TupleType):
  1011                     if len(element_infos["type"]) > 0 and isinstance(element_infos["type"][0], types.TupleType):
  1012                         for choice, xsdclass in element_infos["type"]:
  1012                         for choice, xsdclass in element_infos["type"]:
  1013                             choicectrl.Append(choice)
  1013                             choicectrl.Append(choice)
  1014                         staticbox = wx.StaticBox(id=-1, label="%(name)s - %(value)s"%element_infos, 
  1014                         staticbox = wx.StaticBox(id=-1, label="%(name)s - %(value)s"%element_infos, 
  1015                             name='%s_staticbox'%element_infos["name"], parent=parent,
  1015                             name='%s_staticbox'%element_infos["name"], parent=parent,
  1016                             pos=wx.Point(0, 0), size=wx.Size(0, 0), style=0)
  1016                             pos=wx.Point(0, 0), size=wx.Size(10, 0), style=0)
  1017                         staticboxsizer = wx.StaticBoxSizer(staticbox, wx.VERTICAL)
  1017                         staticboxsizer = wx.StaticBoxSizer(staticbox, wx.VERTICAL)
  1018                         sizer.AddSizer(staticboxsizer, 0, border=5, flag=wx.GROW|wx.BOTTOM)
  1018                         sizer.AddSizer(staticboxsizer, 0, border=5, flag=wx.GROW|wx.BOTTOM)
  1019                         self.RefreshSizerElement(parent, staticboxsizer, plugin, element_infos["children"], element_path)
  1019                         self.RefreshSizerElement(parent, staticboxsizer, plugin, element_infos["children"], element_path)
  1020                         callback = self.GetChoiceContentCallBackFunction(choicectrl, staticboxsizer, plugin, element_path)
  1020                         callback = self.GetChoiceContentCallBackFunction(choicectrl, staticboxsizer, plugin, element_path)
  1021                     else:
  1021                     else: