当前位置:网站首页>Pyqt5 工具盒使用

Pyqt5 工具盒使用

2022-06-23 13:49:00 威唯

button

关联槽函数
button.clicked.connect(self.func)

使能按键
button.setEnabled(False)
button.setEnabled(Ture)

设置按键钮显示
pushButton.setText(“CONN”)

label

加载GIF图
gif = QMovie(“tcp/qt_ui/qq.gif”)
label.setMovie(gif)
gif.start()

lineEdit

设置lineE中的值
lineEdit.setText(‘127.0.0.1’)

获取lineE中的值
str =lineEdit.text()

pyinstaller 打包工具

pyinstaller -F name=your_name main.py

原网站

版权声明
本文为[威唯]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_38513151/article/details/125286187