Mercurial > libervia-backend
comparison frontends/src/primitivus/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 |
---|---|
48 class InvalidXMLUI(Exception): | 48 class InvalidXMLUI(Exception): |
49 pass | 49 pass |
50 | 50 |
51 class XMLUI(urwid.WidgetWrap): | 51 class XMLUI(urwid.WidgetWrap): |
52 | 52 |
53 def __init__(self, host, xml_data, title = None, options = [], misc={}): | 53 def __init__(self, host, xml_data, title = None, options = None, misc = None): |
54 self.host = host | 54 self.host = host |
55 self.title = title | 55 self.title = title |
56 self.options = options | 56 self.options = options or [] |
57 self.misc = misc | 57 self.misc = misc or {} |
58 self.__dest = "window" | 58 self.__dest = "window" |
59 self.ctrl_list = {} # usefull to access ctrl | 59 self.ctrl_list = {} # usefull to access ctrl |
60 widget = self.constructUI(xml_data) | 60 widget = self.constructUI(xml_data) |
61 urwid.WidgetWrap.__init__(self,widget) | 61 urwid.WidgetWrap.__init__(self,widget) |
62 | 62 |