The following script shows how we can center a window on the desktop screen.#!/usr/bin/python# -*- coding: utf-8 -*-"""ZetCode PyQt4 tutorial This pro...
转载于http://blog.chinaunix.net/uid-200142-id-4018863.htmlpython的string和PyQt的QString的区别 python string和PyQt的QString的区别 以下在Python2.6和PyQt4.4.4 for Python2,...
分类:
编程语言 时间:
2015-04-17 13:37:05
阅读次数:
257
We can provide a balloon help for any of our widgets.#!/usr/bin/python# -*- coding: utf-8 -*-"""ZetCode PyQt4 tutorial This example shows a tooltip on...
因为想要学习python界面和串口通信。所以在github上面找到了这个一个程序 地址是http://eli.thegreenplace.net/2009/08/07/a-live-data-monitor-with-python-pyqt-and-pyserial我使用git将代码clone出来之...
分类:
其他好文 时间:
2015-03-15 00:35:41
阅读次数:
337
1 # -*- coding: utf-8 -*- 2 from PyQt4.QtGui import * 3 from PyQt4.QtCore import * 4 import sys 5 QTextCodec.setCodecForTr(QTextCodec.codecForName("u....
分类:
其他好文 时间:
2015-03-12 11:01:39
阅读次数:
133
受到love小树林的启发,圆满完成了打包。操作过程如下:
1、下载cx_freeze
这里是下载的地址
从该网页上找到cx_Freeze?4.3.4?cp34?none?win32.whl,点击下载
2、修改下载文件的扩展名
把扩展名whl,改为zip
3、把该文件解压缩
取出其中的3个子目录
4、删除cx_freeze的旧包
把Python 3.4 安装目录下,Lib\site...
分类:
编程语言 时间:
2015-03-06 06:16:39
阅读次数:
281
pyqt的托盘效果很好实现,在Pyqt的demo中有个例子路径:PyQt4\examples\desktop\systray.py今天我就仿这个Tray效果做效果一. 创建UItrayicon.ui文件: 1 2 3 TrayIcon 4 5 6 7 ...
分类:
其他好文 时间:
2015-03-04 15:56:53
阅读次数:
1595
还在继续写Python小工具,想起之前用Tkinter被坑得半死,决定换个框架写UI,又想顺便了解一下qt,就学习一下pyqt4搭建环境win:现在安装包 http://www.riverbankcomputing.co.uk/software/pyqt/download,测试环境是win8 64位...
分类:
其他好文 时间:
2015-03-02 16:46:03
阅读次数:
251
PyQt5 和 PyQt4 之间的差异PyQt5不兼容PyQt4(尽管经验表明,将PyQt4的应用程序移植到PyQt5难度不是很大)。本节描述了两者之间的主要差异。支持Python的版本不支持较早的Python2.6之前的版本┊。推荐使用特性PyQt5不支持任何被标记为过时的或废弃的QT V5.0 ...
分类:
其他好文 时间:
2015-02-02 17:46:11
阅读次数:
14968