摘要: 1 # -*- coding:utf-8 -*- 2 ''' 3 Created on Sep 13, 2018 4 5 @author: SaShuangYiBing 6 ''' 7 import sys 8 from PyQt5.QtWidgets import QApplication,QMainWindow,QAction,qApp 9 from PyQt5.Qt i... 阅读全文
posted @ 2018-09-13 18:01 iSZ 阅读(958) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding:utf-8 -*- 2 ''' 3 Created on Sep 13, 2018 4 5 @author: SaShuangYiBing 6 ''' 7 import sys 8 from PyQt5.QtWidgets import QApplication,QWidget,QGridLayout,QLabel,QLineEdit,QTextE... 阅读全文
posted @ 2018-09-13 17:38 iSZ 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding:utf-8 -*- 2 ''' 3 Created on Sep 13, 2018 4 5 @author: SaShuangYiBing 6 ''' 7 import sys 8 from PyQt5.QtWidgets import QApplication,QWidget,QPushButton,QGridLayout 9 10 clas... 阅读全文
posted @ 2018-09-13 17:36 iSZ 阅读(900) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding:utf-8 -*- 2 ''' 3 Created on Sep 13, 2018 4 5 @author: SaShuangYiBing 6 ''' 7 import sys 8 from PyQt5.QtWidgets import QApplication,QWidget,QPushButton,QHBoxLayout,QVBoxLayout... 阅读全文
posted @ 2018-09-13 17:34 iSZ 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding:utf-8 -*- 2 ''' 3 Created on Sep 13, 2018 4 5 @author: SaShuangYiBing 6 ''' 7 import sys 8 from PyQt5.QtWidgets import QApplication,QWidget,QLabel 9 10 class New_test(QWidge... 阅读全文
posted @ 2018-09-13 17:33 iSZ 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 程序执行完成后,程序窗口会显示在电脑屏幕的中央 阅读全文
posted @ 2018-09-13 17:31 iSZ 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 点击窗口的 关闭 按钮,弹出messageBox 注:第28行解释:QMessageBox.question(self, 'Message', 'Are you want to quit?', QMessageBox.Yes | QMessageBox.No,QMessageBox.Yes) 显示一 阅读全文
posted @ 2018-09-13 17:29 iSZ 阅读(1874) 评论(0) 推荐(0) 编辑
摘要: 点击 quit 按钮退出该窗口 阅读全文
posted @ 2018-09-13 17:24 iSZ 阅读(575) 评论(0) 推荐(0) 编辑
摘要: 放置在按钮以外的空白区域的tips提示 放置在Button上的tips提示 阅读全文
posted @ 2018-09-13 17:22 iSZ 阅读(628) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding:utf-8 -*- 2 ''' 3 Created on Sep 13, 2018 4 5 @author: SaShuangYiBing 6 ''' 7 import sys 8 from PyQt5.QtWidgets import QApplication,QWidget 9 from PyQt5.QtGui import QIcon 10... 阅读全文
posted @ 2018-09-13 17:18 iSZ 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding:utf-8 -*- 2 ''' 3 Created on Sep 13, 2018 4 5 @author: SaShuangYiBing 6 ''' 7 import sys 8 from PyQt5.QtWidgets import QApplication,QWidget 9 10 if __name__ == "__main__": 1... 阅读全文
posted @ 2018-09-13 17:15 iSZ 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding:utf-8 -*- 2 ''' 3 Created on Sep 13, 2018 4 5 @author: SaShuangYiBing 6 ''' 7 import sys 8 from PyQt5.QtWidgets import QApplication,QWidget,QMainWindow 9 10 class New_test(Q... 阅读全文
posted @ 2018-09-13 11:26 iSZ 阅读(2015) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/tongchengbin/p/pyqt5.html 作者:童小哥问题不开心 1 PyQt5整体介绍 PyQt5是基于图形程序框架Qt5的Python语言实现,由一组Python模块构成。PyQt5的官方网站是:www.riverbankcompu 阅读全文
posted @ 2018-09-13 11:00 iSZ 阅读(914) 评论(0) 推荐(0) 编辑