PythonGui->对话框
来源:互联网 发布:淘宝运动鞋 编辑:程序博客网 时间:2024/06/05 21:49
<span style="font-size:24px;">import sysfrom PyQt4 import QtGuiclass MessageBox(QtGui.QWidget): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.setGeometry(300, 300, 250, 150) self.setWindowTitle('message box') def closeEvent(self, event): reply = QtGui.QMessageBox.question(self, 'Message', \ 'Are you sure to quit?',\ QtGui.QMessageBox.Yes, QtGui.QMessageBox.No) if reply == QtGui.QMessageBox.Yes: event.accept() else: event.ignore() app = QtGui.QApplication(sys.argv)mb = MessageBox()mb.show()sys.exit(app.exec_())</span>
0 0
- PythonGui->对话框
- pythonGui 对话框
- PythonGui->状态栏
- PythonGui->菜单栏
- pythonGUI编程
- PythonGUI学习笔记
- pythonGUI的使用
- PythonGUI-TK、Pyside
- PythonGui->显示窗口
- PythonGui->关闭窗口
- 隐藏pythonGUI windows窗口终端
- 使用QT创建PythonGUI程序
- 我的第一个PythonGUI程序
- 译:2015年前5名pythonGUI框架
- 如何使用pyQT做pythonGUI界面?
- pythonGUI编程(Tkinter)(1)
- 对话框
- 对话框
- MySQL存储引擎介绍
- 344. Reverse String
- VI编辑器(Visual Editor)之模式之间的转换方法
- Linux安装Oracle数据库配置大页内存
- python 网络编程学习 epoll多路复用
- PythonGui->对话框
- 51nod1126【矩阵快速幂】
- Struts2初识
- Nis服务器之Master-Slave设置
- 51node 1419 最小公倍数挑战
- go定时器收集,执行一次后每天24点执行程序
- 《纠结学习C++还是Java》之《如何学好Java》
- maven创建项目时在generating project in interactive mode卡住了
- JavaScript中eval()、with()和reduce()的用法