MCPcopy
hub / github.com/PyQt5/PyQt / registerObject

Method registerObject

QWebChannel/Lib/WebChannelObject.py:71–78  ·  view source on GitHub ↗

注册对象 @param name: 名称 @type name: str @param obj: 对象 @type obj: QObject

(self, name, obj)

Source from the content-addressed store, hash-verified

69 QWebSocketServer.NonSecureMode, self)
70
71 def registerObject(self, name, obj):
72 """注册对象
73 @param name: 名称
74 @type name: str
75 @param obj: 对象
76 @type obj: QObject
77 """
78 self.m_webchannel.registerObject(name, obj)
79
80 def registerObjects(self, objects):
81 """注册多个对象

Callers 5

__init__Method · 0.95
registerObjectsMethod · 0.95
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected