comparison frontends/src/wix/param.py @ 777:5642939d254e

core, bridge: new method paramsRegisterApp to register frontend's specific parameters
author souliane <souliane@mailoo.org>
date Fri, 27 Dec 2013 13:28:26 +0100
parents bfabeedbf32e
children
comparison
equal deleted inserted replaced
776:f89173f44850 777:5642939d254e
23 import wx 23 import wx
24 import pdb 24 import pdb
25 from xml.dom import minidom 25 from xml.dom import minidom
26 from logging import debug, info, error 26 from logging import debug, info, error
27 from sat.tools.jid import JID 27 from sat.tools.jid import JID
28 from sat_frontends.wix.constants import Const
28 29
29 30
30 class Param(wx.Frame): 31 class Param(wx.Frame):
31 def __init__(self, host, title=_("Configuration")): 32 def __init__(self, host, title=_("Configuration")):
32 super(Param, self).__init__(None, title=title) 33 super(Param, self).__init__(None, title=title)
102 panel.SetAutoLayout(True) 103 panel.SetAutoLayout(True)
103 self.notebook.AddPage(panel, category) 104 self.notebook.AddPage(panel, category)
104 cat_dom.unlink() 105 cat_dom.unlink()
105 106
106 self.host.bridge.getParamsForCategory(category, 107 self.host.bridge.getParamsForCategory(category,
108 app=Const.APP_NAME,
107 profile_key=self.host.profile, 109 profile_key=self.host.profile,
108 callback=gotParams, 110 callback=gotParams,
109 errback=errorGettingParams) 111 errback=errorGettingParams)
110 112
111 def onTextChanged(self, event): 113 def onTextChanged(self, event):