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

Method test

Test/TestToolTip.py:35–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 if not hasattr(self, '_tip'):
34
35 def test():
36 self._tip = ToolTip()
37 self._tip.setText('底部居中提示')
38 self._tip.show()
39 self._tip.move(
40 self.pos().x() + int(
41 (self.width() - self._tip.width()) / 2),
42 self.pos().y() + self.height() - 20,
43 )
44 self._tip._hideTimer.timeout.connect(self._tip.close)
45 self._tip._hideTimer.start(2000)
46
47 QTimer.singleShot(1000, test)
48

Callers 15

aFunction · 0.80
layer.jsFile · 0.80
grabAllTextNodesFunction · 0.80
testFunction · 0.80
rFunction · 0.80
markdown-it.min.jsFile · 0.80
mFunction · 0.80
lFunction · 0.80
aFunction · 0.80
uFunction · 0.80
sFunction · 0.80

Calls 5

ToolTipClass · 0.90
setTextMethod · 0.80
moveMethod · 0.80
xMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected