pyqt5之QLabel简单示例

import sys

from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QLabel

app=QtWidgets.QApplication(sys.argv)
widget=QtWidgets.QWidget()
widget.resize(300,300)
widget.setWindowTitle("hello world")
lal=QLabel("this is mengtianwxs",widget)
widget.show()
sys.exit(app.exec_())

猜你喜欢

转载自blog.csdn.net/mengtianwxs/article/details/79839657