MCPcopy Create free account
hub / github.com/PyQt5/PyQtClient / __init__

Method __init__

Test/TestToolTip.py:19–29  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

17class TestWindow(QWidget):
18
19 def __init__(self, *args, **kwargs):
20 super(TestWindow, self).__init__(*args, **kwargs)
21 self.resize(600, 400)
22 layout = QHBoxLayout(self)
23 btn1 = QPushButton('鼠标悬停1', self, minimumHeight=38, toolTip='这是按钮1')
24 ToolTip.bind(btn1)
25 layout.addWidget(btn1)
26
27 btn2 = QPushButton('鼠标悬停2', toolTip='这是按钮2')
28 ToolTip.bind(btn2)
29 layout.addWidget(btn2)
30
31 def showEvent(self, event):
32 super(TestWindow, self).showEvent(event)

Callers

nothing calls this directly

Calls 1

bindMethod · 0.80

Tested by

no test coverage detected