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

Method _createInstance

Demo/Notification.py:193–198  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

191
192 @classmethod
193 def _createInstance(cls):
194 # 创建实例
195 if not cls._instance:
196 cls._instance = NotificationWindow()
197 cls._instance.show()
198 NotificationIcon.init()
199
200 @classmethod
201 def info(cls, title, message, callback=None):

Callers 4

infoMethod · 0.80
successMethod · 0.80
warningMethod · 0.80
errorMethod · 0.80

Calls 3

NotificationWindowClass · 0.85
showMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected