自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

清风飘过

技术是生产力

  • 博客(28)
  • 资源 (3)
  • 收藏
  • 关注

转载 Python实践——datetime日期操作脚本

#!/usr/bin/python   # -*- coding: utf-8 -*-   #countDays.py   # version 0.10      edited by lingyue.wkl 20110819 11:00:00   # version 0.11      modified by lingyue.wkl 20110820 11:37:00   add function

2012-09-25 20:37:32 689

转载 使用python将Sqlite中的数据直接输出为CVS

对于SQLite来说,目前查看还是比较麻烦,所以就像把SQLite中的数据直接转成Excel中能查看的数据,这样也好在Excel中做进一步分数据处理或分析,如上篇文章中介绍的IP抓取的IP数据。从网上找到了一个将SQLite转成CVS的方法,贴在博客里,供需要的朋友使用:import sqlite3import csv, codecs, cStringIOclass UnicodeWrit

2012-09-25 20:32:28 4306

转载 wingIDE支持中文

默认情况下wingIDE下面是不能输入中文的,若想输入中文注释则有障碍了,可以按如下几步进行设置:1)打开菜单FILE -》FILE SETS -》USER INTERFACE2)设置 Display Font/Size:找一种支持中文的字体,如simsun,simhei等,大小设置为93)设置 Source Code Font/Size,同样修改为支持中文的字

2012-09-24 16:53:50 983

原创 QT视频

http://developer.qt.nokia.com/videos

2012-09-22 23:04:06 453

原创 install python-3.2 and MySQL for Python on SLES11SP1

参照http://blog.chinaunix.net/uid-529096-id-2100576.htmlinstall python-3.2 and MySQL for Python on centos51)os informationbill131:~/davispuh-MySQL-for-Python-3-a3c5b40 # uname  -aLinux bil

2012-09-21 21:30:13 1122

转载 linux下telnet交换机 Backspace键 失效

问题linux 下telnet 登录H3C 3650交换机,登录前没有问题,当进入到H3C后,发现敲入命令后不能回退(就是使用Backspace无效),如果发现一条命令敲错了就很麻烦了 解决用Ctrl-H回退 其它Gnome下:打开终端,菜单上选择Edit->Profiles->Edit->Compatibility,将Backspace k

2012-09-20 18:04:20 3451

转载 WingIDE AutoComplete with PySide 的方法

WingIDE 是一套商業軟體,他很強、很小但是中文顯示上有些小問題~如果你選的字型裡面沒有中文的話,WingIDE 就會呆呆的顯示一個方塊給你看....>"不過我已經停止掙扎了且不是這篇文章的重點。PySide 是可以說是PyQt 的 LGPL 版本,LGPL 授權下你開發的專案就不用 OpenSource 的說,使用PyQt 你的專案要嘛就Open Source, 要不

2012-09-19 12:59:34 1613 1

原创 sles11 sp2下安装powerpath

环境:系统:sles11 sp2磁阵:EMC AX4-5连接:每个服务器2块HBA卡report1:~ # rpm  -ivh  EMCPower.LINUX-5.7.0.00.00-421.SLES11SP2.x86_64.rpmPreparing...                ########################################### [1

2012-09-19 11:51:42 1478

原创 powerpath下载地址

http://powerlink.emc.com

2012-09-19 10:41:05 1689

转载 Python IDE的选择 —— 以智能代码功能为标准

大年初二开始学Python,首先得选一个开发环境。由于以前一直用Visual Studio,选IDE的时候首先得看是不是有智能代码(Call-Tips和 Auto-Complete)功能,如果没有的话,对于我这样的新手实在太痛苦了,我可不想去记那些库、包和函数名,最好一点 . 就能全出来。 看了《python IDE 介绍》这篇文章,把里边提到的IDE都下载了试用,最后选择了Pyt

2012-09-18 00:33:06 1316 1

转载 Eric4入门教程

1. 新建工程。打开Eric4,选择菜单Project->New新建一个工程,名字我们取为HelloPyQt,填好各项并选择工程所在文件夹之后点OK,一个新的不含任何文件的工程就建好了。2. 新建对话框。在左侧的ProjectViewer中切换到Forms选项卡(左数第二个),右键点空白位置,选New Form,在弹出的对话框中选择Form类型为Dialog,然后会问你保存到哪

2012-09-17 23:42:32 2332

转载 PyQt4 QAction()使用教程

exit=QtGui.QAction(QtGui.QIcon('pix/Moon.bmp'),'Exit',self) #创建一个action "exti"为title self 为parentexit.setSeparator(bool)#设置设置该action为分离器 也就是分隔符? 当为true时 QIcon会无效exit.setShortcut('Ctrl+Q') #设置快

2012-09-17 17:13:24 8680

转载 [PyQt4]项目开发中遇到的错误与解决办法

1假如将ui文件py化以后产生的关于界面的类是继承object的ui_dialog,方法是setupui,则在主程序中应:app = QtGui.QApplication(sys.argv)dialog=QtGui.QWidget()ud = Ui_Dialog()ud.setupUi(dialog)dialog.show()sys.exit(app.exec_())

2012-09-17 00:38:58 926

原创 网上找的一些django教程

使用Django快速开发WEB应用http://www.tudou.com/programs/view/61Rax7kvQyM Python.Django视频教程http://www.youku.com/playlist_show/id_4375683.htmlhttp://hi.baidu.com/new/ragkk

2012-09-14 23:51:31 1058

转载 用Python和Pygame写游戏-从入门到精通

转自 http://eyehere.net/2011/python-pygame-novice-professional-index/pdf下载:http://down.51cto.com/data/392533pygame模块下载:http://www.pygame.org/news.html

2012-09-14 23:13:22 1025

转载 pyqt4登陆程序

对于初次做GUI程序的人来说,确实登陆窗口程序会造成困惑,以前做Delphi时也有人问过我,好不容易人家才理解清楚,PyQt也是一样的。 一般有两种处理方式: 第一种:在打开主窗体前打开登陆对话框,如果登陆成功,再创建主窗体并打开; 第二种:在创建主窗体后,在显示主窗体前打开登陆对话框,如果登陆成功,显示主窗体,如果失败,不显示主窗体,并退出程序。 我推荐第一种方式,逻辑清

2012-09-14 18:18:28 2166

转载 PyQt布局

http://blog.chinaunix.net/uid-25979788-id-2171396.htmlQt Designer 布局(1) PyQt学习基础是本文要介绍的内容,先来看内容。我们用Qt Designer设计一个对话框。假如我们想设计一个下面的对话框:一、创建工程打开Designer,在弹出的新建窗体对话框中,选择templatesforms中的Dialog w

2012-09-14 17:59:34 1676

转载 PyQt4学习资料

PyQt4学习资料汇总一个月前研究了下PyQt4,感觉比较不错。相比wxpython,界面美观了很多,并且将界面设计与代码逻辑很好的分离了开来。关于PyQt4的资料也不少,这里我将我找到的资料汇总一下,以防自己以后忘得一干二净。1.PyQt4资料链接 http://www.riverbankcomputing.com  http://wiki.woodpecker.org.cn

2012-09-14 17:01:37 1171

转载 PyQt4 QLineEdit 使用方法

QLineEdit 单行输入框lineedit = QLineEdit() 实例化一个输入框lineedit =setReadOnly(True) #设置为只读lineedit.setDragEnabled(True) #设置能接受拖放lineedit.setMaxLength(5) #设置最大长度lineedit.selectAll() #全选lineedit.setFo

2012-09-14 16:59:16 5529

转载 PyQt4连接sqlite数据库

SQLite,是一款轻型的数据库,是遵守ACID的关联式数据库管理系统,它的设计目标是嵌入式的,而且目前已经在很多嵌入式产品中使用了它,它占用资源非常的低,在嵌入式设备中,可能只需要几百K的内存就够了。下面简单介绍下pyqt连接sqlite数据库的方法:#-*- coding: utf-8 -*-from PyQt4.QtGui import * from PyQt4.QtCore i

2012-09-14 12:26:24 2595

转载 pyqt4信号与槽之间参数传递

这个是网上找到信号与槽之前传参的例子,希望对大家有用。 import sysfrom time import timefrom PyQt4.QtCore import *class A (QObject):    def __init__(self):        QObject.__init__(self)       #定义一个发射信号的方

2012-09-14 12:25:28 984

原创 SLES11下安装PyQt4.94

环境:SLES11 SP1  +PYTHON3.2 +PyQt4.94安装过程中第一次报如下错,这是因为需要SIP包,下载地址:http://www.riverbankcomputing.co.uk/newsbill131:~/PyQt-x11-gpl-4.9.4 # python3 configure.py Traceback (most recent call last):

2012-09-10 22:08:59 1361

转载 pyqt的安装(linux下)

okia在收购qt之后,让qt出现了lgpl的licence,这一举动获得了不少赞许。nokia也希望pyqt能有lgpl的licence,只可惜与Riverbank谈判不拢,pyqt依旧是gpl的licence。迫不得已,nokia只好自己搞个类似pyqt的项目(pyside)。这个pyside项目的协议是lgpl的,目前还不够完善,但相信以后的前景是不错的。目前pyqt仍然是主流,所以

2012-09-10 21:48:46 2744

转载 python+PyQT+Eric安装配置

python+PyQT+Eric安装配置作者:loker博客:http://www.cnblogs.com/lhj588/时间:2011年10月3日一、大纲内容:1、预备PC环境:2、预备安装程序:2、1、下载Pytho

2012-09-10 21:39:51 2167

转载 使用Pyqt在Linux下开发GUI桌面应用

http://blog.csdn.net/yhniejun/article/details/1296726要在Linux下开发具有图形界面的桌面应用程序,我们有许多选择。当然,除了语言方面的考虑外,我们更多的是考虑窗口部件工具箱(以前称为控件库或组件库)的选择,这将在很大程度上影响我们的开发效率。如果考虑到跨平台应用,选择Java的Swing可能非常合适。但是目前的swing尽管很强大

2012-09-10 21:38:07 10528

原创 shell脚本加密

一般使用2中软件,一是采用shc,但需要下载安装,另一种采用系统自带的gzexe命令 shc下载地址:http://www.anyside.com/linux/shc-3.8.tgzhttp://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.tgz

2012-09-10 17:18:15 780

原创 python2.6+sles11.1+lxml3.0+spyne2.8.2安装

需要搭建webservice环境,决定使用spyne模块1. 安装distribute-0.6.26.tar.gz   最好安装上,否则有些软件安装会报错。2. 安装lxml:安装过程报错,原因为没有安装python-devel-2.6.0-8.9.20包,其次对“error: command 'gcc' failed with exit status 1”报错,还需要安装libx

2012-09-10 16:28:15 5459 1

原创 Python 3 文档(简体中文) 3.2.2 documentation

http://docspy3zh.readthedocs.org/en/latest/index.html

2012-09-04 12:45:03 2086

网络工程师考前冲刺100题

作 者:朱小平 著 出版社:中国水利水电出版社 ISBN:9787517007067出版时间:2013-03-01页数:301包装:平装开本:16开字数:

2014-04-04

Introduction to Python Programming and Developing GUI Applications with PyQT

"Introduction to Python Programming and Developing GUI Applications with PyQT 1E" teaches Python programming step-by-step through practical examples that readers can see in action right away. It begins with a solid introduction of Python from scratch, covering loops, control structures, sequences, functions, classes, and exception handling. Thereafter, the book explores file handling and GUI application development in PyQT, the powerful cross-platform GUI layout and forms builder that allows programmers to rapidly design and build widgets and dialogs. The book finishes with an introduction to Django, an easy-to-use platform for developing web applications in Python. This is a great book for newbie programmers interested in learning Python.

2012-09-15

Rapid GUI Programming with Python and Qt

The Insider's Best-Practice Guide to Rapid PyQt 4 GUI Development Whether you're building GUI prototypes or full-fledged cross-platform GUI applications with native look-and-feel, PyQt 4 is your fastest, easiest, most powerful solution. Qt expert Mark Summerfield has written the definitive best-practice guide to PyQt 4 development. With Rapid GUI Programming with Python and Qt you'll learn how to build efficient GUI applications that run on all major operating systems, including Windows, Mac OS X, Linux, and many versions of Unix, using the same source code for all of them. Summerfield systematically introduces every core GUI development technique: from dialogs and windows to data handling; from events to printing; and more. Through the book's realistic examples you'll discover a completely new PyQt 4-based programming approach, as well as coverage of many new topics, from PyQt 4's rich text engine to advanced model/view and graphics/view programming. Every key concept is illuminated with realistic, downloadable examples—all tested on Windows, Mac OS X, and Linux with Python 2.5, Qt 4.2, and PyQt 4.2, and on Windows and Linux with Qt 4.3 and PyQt 4.3.

2012-09-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除