diff src/browser/sat_browser/xmlui.py @ 679:a90cc8fc9605

merged branch frontends_multi_profiles
author Goffi <goffi@goffi.org>
date Wed, 18 Mar 2015 16:15:18 +0100
parents ebb602d8b3f2
children 9877607c719a
line wrap: on
line diff
--- a/src/browser/sat_browser/xmlui.py	Thu Feb 05 12:05:32 2015 +0100
+++ b/src/browser/sat_browser/xmlui.py	Wed Mar 18 16:15:18 2015 +0100
@@ -71,7 +71,7 @@
         """Add a divider
 
         @param _xmlui_parent
-        @param style (string): one of:
+        @param style (unicode): one of:
             - line: a simple line
             - dot: a line of dots
             - dash: a line of dashes
@@ -407,11 +407,11 @@
 class XMLUIPanel(LiberviaXMLUIBase, xmlui.XMLUIPanel, VerticalPanel):
     widget_factory = WidgetFactory()
 
-    def __init__(self, host, parsed_xml, title=None, flags=None):
+    def __init__(self, host, parsed_xml, title=None, flags=None, callback=None, profile=C.PROF_KEY_NONE):
         self.widget_factory._xmlui_main = self
         VerticalPanel.__init__(self)
         self.setSize('100%', '100%')
-        xmlui.XMLUIPanel.__init__(self, host, parsed_xml, title, flags)
+        xmlui.XMLUIPanel.__init__(self, host, parsed_xml, title, flags, callback, profile)
 
     def setCloseCb(self, close_cb):
         self.close_cb = close_cb
@@ -445,7 +445,7 @@
 
     def show(self):
         options = ['NO_CLOSE'] if self.type == C.XMLUI_FORM else []
-        _dialog = dialog.GenericDialog(self.title, self, options=options)
+        _dialog = dialog.GenericDialog(self.xmlui_title, self, options=options)
         self.setCloseCb(_dialog.close)
         _dialog.show()
 
@@ -453,8 +453,8 @@
 class XMLUIDialog(LiberviaXMLUIBase, xmlui.XMLUIDialog):
     dialog_factory = GenericFactory()
 
-    def __init__(self, host, parsed_dom, title = None, flags = None):
-        xmlui.XMLUIDialog.__init__(self, host, parsed_dom, title, flags)
+    def __init__(self, host, parsed_dom, title = None, flags = None, callback=None, profile=C.PROF_KEY_NONE):
+        xmlui.XMLUIDialog.__init__(self, host, parsed_dom, title, flags, callback, profile)
 
 xmlui.registerClass(xmlui.CLASS_PANEL, XMLUIPanel)
 xmlui.registerClass(xmlui.CLASS_DIALOG, XMLUIDialog)