PyQt5显示提示信息(3)
发布时间
阅读量:
阅读量
研读《PyQt4入门指南 PDF中文版.pdf》过程中整理的学习记录

对于任意窗口组件,均可配置相应的气球提示信息。
#!/usr/bin/python
# tooltip.py
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWidgets import QToolTip
from PyQt5 import QtWidgets
from PyQt5.QtGui import QFont
class Tooltip(QtWidgets.QWidget):
def __init__(self, parent = None):
QtWidgets.QWidget.__init__(self, parent)
self.setGeometry(300, 300, 250, 150)
self.setWindowTitle('T
全部评论 (0)
还没有任何评论哟~
