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

Method onMsgShow

Demo/BubbleTips.py:147–157  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

145 layout.addWidget(self.msgButton)
146
147 def onMsgShow(self):
148 msg = self.msgEdit.text().strip()
149 if not msg:
150 return
151 if hasattr(self, "_blabel"):
152 self._blabel.stop()
153 self._blabel.deleteLater()
154 del self._blabel
155 self._blabel = BubbleLabel()
156 self._blabel.setText(msg)
157 self._blabel.show()
158
159
160if __name__ == "__main__":

Callers

nothing calls this directly

Calls 6

BubbleLabelClass · 0.85
deleteLaterMethod · 0.80
textMethod · 0.45
stopMethod · 0.45
setTextMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected