摘要: 主要内容 通过继承实现自己的界面类;涉及模块:QDialog, QLineEdit , QTextBrowser界面布局:绝对布局,布局类实例讲解先看一段代码,我们定义了一个类Form,它继承自QDialogclass Form(QDialog): def __init__(self, parent=None): super(Form, self).__init__(parent) self.browser = QTextBrowser() self.lineedit = QLineEdit("Type an expression and pr... 阅读全文
posted @ 2012-09-27 19:20 Keosu 阅读(8259) 评论(0) 推荐(0) 编辑
摘要: 主要内容 主要了解PyQt程序的整体框架;涉及模块:QApplication, QLabel , QTimer实例讲解首先先看一个简单的PyQt程序:import sysfrom PyQt4.QtGui import *from PyQt4.QtCore import *app = QApplication(sys.argv) label = QLabel("<font color=red size=128><b>Hello PyQT!</b></font>")label.setWindowFlags(Qt.SplashScr 阅读全文
posted @ 2012-09-27 16:15 Keosu 阅读(4503) 评论(0) 推荐(0) 编辑