Python入门学习(三)GUI程序
2014-11-01 20:24
232 查看
一个GUI程序
正则表达式
# -*- coding: cp936 -*- from Tkinter import * # 创建定义GUI的应用程序类和事件处理方法 class KeysApp(Frame): def __init__(self): Frame.__init__(self) self.txtBox = Text(self) self.txtBox.bind('<space>',self.doQuitEvent ) self.txtBox.pack() self.pack() def doQuitEvent(self,event): import sys sys.exit() myApp = KeysApp() myApp.mainloop()
正则表达式
# .表示通配符 re.match('be.t','best') # <_sre.SRE_Match object at 0x01E93720> # []表示搜索符,将搜索方括号中的任何一个字符 re.match('s[pwl]am','spam') # <_sre.SRE_Match object at 0x01E975D0> # 通过放置一个^标志来作为组的第一个元素,可以查找到多列字符之外的任何字符 re.match('[^f]ool','cool') # <_sre.SRE_Match object at 0x01E93720>
相关文章推荐
- 使用Python开发windows GUI程序入门实例
- Python学习入门和第一个python程序的运行
- 使用Python开发windows GUI程序入门实例
- Python的爬虫程序编写框架Scrapy入门学习教程
- 学习Python就业有哪些方向?附加视频教程(python3从入门到进阶(面向对象),实战(爬虫,飞机游戏,GUI)视频教程)
- 机器学习入门学习笔记:(2.2)线性回归python程序实现
- QT_PC学习_GUI程序设计入门_主窗口
- Python的爬虫程序编写框架Scrapy入门学习教程
- python学习:第一个程序猜数字小游戏~包含次数限制、用户输入类型限制。内容学习源于【小甲鱼python入门学习】
- Python3 初学实践案例(7)tkinter 入门 GUI 的密码生成程序
- 【python】图形用户界面入门:EasyGui学习超详细版
- python3.6+pyqt5 IDE: Pycahrm+Qtdesign 快速开发GUI程序学习资源
- 使用Python开发windows GUI程序入门实例
- QT_PC学习_GUI程序设计入门_窗口
- Python学习(十三)------- GUI程序设计
- Python 学习(二)【快速入门】
- 一直想学习的工作流的程序分享给大家--有关画工作流流程的入门程序(附源码)
- 一直想学习的工作流的程序分享给大家--有关画工作流流程的入门程序(附源码)
- 【转载】黑莓开发学习(入门教程)03-经典的HelloWorld程序
- 第一次写完整的Python GUI程序