comparison src/tools/xml_tools.py @ 1036:35048cafb18d

tools (xmlui): to click a button in a "param" form will automatically submit the parameters of the same category
author souliane <souliane@mailoo.org>
date Fri, 16 May 2014 00:53:09 +0200
parents 301b342c697a
children f7f15d44fdfa
comparison
equal deleted inserted replaced
1035:c4c14480715a 1036:35048cafb18d
234 if value: 234 if value:
235 widget_kwargs["value"] = value 235 widget_kwargs["value"] = value
236 236
237 if callback_id: 237 if callback_id:
238 widget_kwargs['callback_id'] = callback_id 238 widget_kwargs['callback_id'] = callback_id
239 others = ["%s%s%s" % (category_name, SAT_PARAM_SEPARATOR, other.getAttribute('name'))
240 for other in category.getElementsByTagName('param')
241 if other.getAttribute('type') != 'button']
242 widget_kwargs['fields_back'] = others
239 243
240 widget_kwargs['name'] = "%s%s%s" % (category_name, SAT_PARAM_SEPARATOR, param_name) 244 widget_kwargs['name'] = "%s%s%s" % (category_name, SAT_PARAM_SEPARATOR, param_name)
241 245
242 param_ui.addWidget(type_, **widget_kwargs) 246 param_ui.addWidget(type_, **widget_kwargs)
243 247