示例#1
0
文件: cocoa.py 项目: r0x0r/pywebview
        def userContentController_didReceiveScriptMessage_(self, controller, message):
            func_name, param = json.loads(message.body())
            if param is WebKit.WebUndefined.undefined():
                param = None

            i = BrowserView.get_instance('js_bridge', self)
            _js_bridge_call(i.uid, self.api, func_name, param)
示例#2
0
        def userContentController_didReceiveScriptMessage_(
                self, controller, message):
            func_name, param = json.loads(message.body())
            if param is WebKit.WebUndefined.undefined():
                param = None

            i = BrowserView.get_instance('js_bridge', self)
            _js_bridge_call(i.uid, self.api, func_name, param)
示例#3
0
文件: gtk.py 项目: lonicera/pWv
 def call(self, func_name, param):
     if param == 'undefined':
         param = None
     return _js_bridge_call(self.parent_uid, self.api, func_name, param)
示例#4
0
 def call(self, func_name, param):
     _js_bridge_call(self.uid, self.api, func_name, param)
示例#5
0
        def callFunc_withParam_(self, func_name, param):
            if param is WebKit.WebUndefined.undefined():
                param = None

            i = BrowserView.get_instance('js_bridge', self)
            _js_bridge_call(i.uid, self.api, func_name, param)
示例#6
0
文件: qt.py 项目: r0x0r/pywebview
        def call(self, func_name, param):
            func_name = BrowserView._convert_string(func_name)
            param = BrowserView._convert_string(param)

            return _js_bridge_call(self.parent_uid, self.api, func_name, param)
示例#7
0
 def call(self, func_name, param):
     return _js_bridge_call(self.parent_uid, self.api, func_name, param)
示例#8
0
文件: qt.py 项目: wormius/pywebview
        def call(self, func_name, param):
            func_name = BrowserView._convert_string(func_name)
            param = BrowserView._convert_string(param)

            return _js_bridge_call(self.parent_uid, self.api, func_name, param)
示例#9
0
 def call(self, func_name, param):
     return _js_bridge_call(self.parent_uid, self.api, func_name, param)
示例#10
0
文件: cef.py 项目: r0x0r/pywebview
 def call(self, func_name, param):
     _js_bridge_call(self.uid, self.api, func_name, param)
示例#11
0
        def callFunc_withParam_(self, func_name, param):
            if param is WebKit.WebUndefined.undefined():
                param = None

            _js_bridge_call(self.api, func_name, param)
示例#12
0
文件: gtk.py 项目: r0x0r/pywebview
 def call(self, func_name, param):
     if param == 'undefined':
         param = None
     return _js_bridge_call(self.parent_uid, self.api, func_name, param)