
python
文章平均质量分 74
digwtx
这个作者很懒,什么都没留下…
展开
-
QInputDialog
#!/usr/bin/pythonimport sysfrom PyQt4 import QtGuifrom PyQt4 import QtCoreclass InputDialog(QtGui.QWidget): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent原创 2010-04-03 13:34:00 · 669 阅读 · 0 评论 -
Python WTForms 2.0 发布
WTForms 是一个 Python 表单验证、渲染开发包。WTForms 2.0 于2014年5月发布,这是继 WTForms 1.0.5 之后第一个重要的版本。新特性Class Meta 可以从多方面定制 WTFormsCSRF 和 i18n 由扩展变成核心特性Widget 渲染变更不推荐使用的API这些API仍然有效,但在很多情况下,会引发弃用警告。这些API翻译 2014-09-01 13:10:40 · 788 阅读 · 0 评论 -
CENTOS 6.5 安装 Python 2.7 总结
CENTOS 6.X 系列默认安装的 Python 2.6 ,目前开发中主要是使用 Python 2.7 ,这两个版本之间还是有不少差异的,程序在 Python 2.6 下经常会出问题。比如: re.sub 函数 ,2.7 支持 flags 参数,而 2.6 却不支持。所以,打算安装 Python 2.7 来运行 Flask 应用程序,但 2.6 不能删除,因为系统对它有依赖。原创 2014-08-31 10:32:29 · 677 阅读 · 0 评论 -
sendmail.py
简介简单的邮件发送脚本,功能与mstmp等类似,可直接作为mutt的MTA。 配置文件配置文件为:~/.wsmtprc 格式:[smtp]host=smtp.qq.comport=25user=yournamepasswd=yourpasswd 源码:#!/usr/bin/env python# -*-原创 2010-04-03 13:54:00 · 548 阅读 · 0 评论 -
CodeEditor (从C++版Qt Example转换)
#!/usr/bin/python# -*- coding: utf-8 -*-import sysfrom PyQt4.QtGui import *from PyQt4.QtCore import *from highlighter import MyHighlighterfrom highlighter import HighlightingRuleclass Co翻译 2010-04-25 20:21:00 · 1329 阅读 · 0 评论 -
mailfile.py
#!/usr/bin/env python# -*- coding: utf-8 -*-class ConfigFile: def __init__(self): from os.path import expanduser home = expanduser(~) self.rcfile = %s/.mailfiler原创 2010-04-03 20:37:00 · 675 阅读 · 0 评论 -
mail.py
用法:echo "hello" | ./mail.py -a 1.py -a 2.py -s "hello" xxx@yyy.comcat filename | ./mail.py -a 1.py -a 2.py -s "hello" xxx@yyy.com./mail.py -a 1.py -a 2.py -s "hello" xxx@yyy.comcat filename |原创 2010-04-03 13:51:00 · 851 阅读 · 0 评论 -
QListWidget
#!/usr/bin/python# -*- coding: utf-8 -*-import sysfrom PyQt4 import QtGuifrom PyQt4 import QtCoreclass InputDialog(QtGui.QWidget): def __init__(self, parent=None): QtGui.QWidge原创 2010-04-03 13:30:00 · 874 阅读 · 0 评论