PyQt4 工具包简介1.1 关于本指南 这是一个入门级的 PyQt 指南。其目的在于引导读者快速上手 PyQt4 工具包。该指南在 Linux 环境下创建并通过测试。 关于 PyQt PyQt 是用来创建 GUI 应用程序的工具包。它是 Python 编程语言与已获得成功的 Qt 库 的 混 合 ...
分类:
其他好文 时间:
2015-05-14 09:57:55
阅读次数:
219
需要用到Spyder工具,于是在网上进行下载,出现了一些问题。 需要安装PyQt4,网站:http://www.riverbankcomputing.co.uk/software/pyqt/download/ 一定要看清版本后再进行下载,对应的Python版本应该注意。
分类:
编程语言 时间:
2015-05-10 18:46:30
阅读次数:
157
网上有python的系统中配置PyQt的过程网上很多,不赘述。
以下64位Windows下装的32位的python和32位的pyqt4(当初装的是32位python,因此pyqt就装了32位)
有任何关于类的疑问请参考:[类介绍](http://pyqt.sourceforge.net/Docs/PyQt4/classes.html)
值得一提的是,第一次安装完成后,直接用最简单程序测试,提示找不到...
分类:
其他好文 时间:
2015-05-10 11:29:41
阅读次数:
269
一,设计三个界面
main.ui,do.ui,wait.ui
图片资源使用qrc文件来控制载入:
img.qrc的内容:
bg.jpg
do.jpg
wait.jpg
显示风格使用样式表qss来控制:
二,将资源控制文件qrc转换成python文件来控制资源载入
转换命令 为
C:\Python27\Lib\s...
分类:
其他好文 时间:
2015-05-03 14:41:13
阅读次数:
200
import sys
from PyQt5.QtWidgets import QWidget, QLabel, QApplication, QPushButton, QHBoxLayout, QVBoxLayout, QGridLayout
class Example(QWidget):
def __init__(self):
super().__init__()...
分类:
其他好文 时间:
2015-05-02 09:50:17
阅读次数:
266
import sys
from PyQt5.QtWidgets import QWidget, QLabel, QApplication, QLineEdit, QTextEdit, QGridLayout
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()...
分类:
其他好文 时间:
2015-05-02 09:49:28
阅读次数:
213
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QMessageBox
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
...
分类:
其他好文 时间:
2015-04-29 10:12:21
阅读次数:
215
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QDesktopWidget
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
...
分类:
其他好文 时间:
2015-04-29 10:09:32
阅读次数:
154
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
class Example(QMainWindow):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
se...
分类:
其他好文 时间:
2015-04-29 10:07:14
阅读次数:
189
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QAction, qApp
from PyQt5.QtGui import QIcon
class Example(QMainWindow):
def __init__(self):
super().__init__()
sel...
分类:
其他好文 时间:
2015-04-29 10:07:10
阅读次数:
412