- 浏览: 426427 次
- 性别:
文章分类
最新评论
-
nianhua2008:
你好,请问哪个cocos版本可以读取cbx文件?
Cocos3dx入门 -
ihic11:
我的为什么Receive.jsp一直有乱码?请帮忙
网银在线支付注意事项 -
奔跑的蓝猫:
楼主你好!请问这两个文件怎么使用啊?
楼主能把源代码发给我下吗 ...
简易视频聊天 -
wx_hello:
不错。。学习了。。
jquery解析xml -
ocaicai:
圣人啊,救星啊,我被这个问题折磨得蛋疼!对了,我在google ...
struts2+urlrewrite
1、main.py
2、mainFrame.py
关键:
1、wx.MenuItem才有菜单事件
2、self.Bind( wx.EVT_MENU, self.dostart, id = self.oper_start_item.GetId() )
#!/usr/bin/env python #Boa:App:BoaApp import wx import mainFrame modules ={'mainFrame': [1, 'Main frame of Application', 'mainFrame.py']} class BoaApp(wx.App): def OnInit(self): self.main = mainFrame.create(None) self.main.Show() self.SetTopWindow(self.main) return True def main(): application = BoaApp(0) application.MainLoop() if __name__ == '__main__': main()
2、mainFrame.py
关键:
1、wx.MenuItem才有菜单事件
2、self.Bind( wx.EVT_MENU, self.dostart, id = self.oper_start_item.GetId() )
# -*- coding: utf-8 -*- import wx def create(parent): return mainFrame(parent) class mainFrame ( wx.Frame ): def __init__( self, parent ): wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = u"截屏专家", pos = wx.DefaultPosition, size = wx.Size( 508,319 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL ) self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize ) self.mf_menubar = wx.MenuBar( 0 ) self.oper_menu = wx.Menu() self.oper_start_item = wx.MenuItem( self.oper_menu, wx.ID_ANY, u"启动", wx.EmptyString, wx.ITEM_NORMAL ) self.oper_menu.AppendItem( self.oper_start_item ) self.oper_stop_item = wx.MenuItem( self.oper_menu, wx.ID_ANY, u"终止", wx.EmptyString, wx.ITEM_NORMAL ) self.oper_menu.AppendItem( self.oper_stop_item ) self.mf_menubar.Append( self.oper_menu, u"操作" ) self.set_menu = wx.Menu() self.set_sys_item = wx.MenuItem( self.set_menu, wx.ID_ANY, u"系统设置", wx.EmptyString, wx.ITEM_NORMAL ) self.set_menu.AppendItem( self.set_sys_item ) self.mf_menubar.Append( self.set_menu, u"设置" ) self.help_menu = wx.Menu() self.mf_menubar.Append( self.help_menu, u"帮助" ) self.SetMenuBar( self.mf_menubar ) self.mf_statusBar = self.CreateStatusBar( 1, wx.ST_SIZEGRIP, wx.ID_ANY ) mf_sizer = wx.BoxSizer( wx.HORIZONTAL ) self.SetSizer( mf_sizer ) self.Layout() self.Centre( wx.BOTH ) # Connect Events self.Bind( wx.EVT_MENU, self.dostart, id = self.oper_start_item.GetId() ) def __del__( self ): pass # Virtual event handlers, overide them in your derived class def dostart( self, event ): print 'sdfsdf'
发表评论
-
ubuntu下使用apache发布Django应用
2010-12-20 09:21 2162一、安装Django 1、下载地址 http://www.dj ... -
【转】Python如何使用urllib2获取网络资源
2010-10-29 20:04 1925urllib2是Python的一个获取URLs(Uniform ... -
python获取系统、平台相关的信息
2010-10-26 16:23 1020python获取系统、平台相关的信息 可使用以下两个模块: ... -
python打印详细的异常信息
2010-09-20 15:44 1231import traceback print trace ... -
python编码问题
2010-08-23 13:26 4306出现错误: UnicodeDecodeError: 'asc ... -
python比较值类型是否为字符串
2010-08-04 14:56 842value:要判断的值 isinstance(value ... -
使用C/C++扩展Python
2010-07-20 16:20 0方式一、使用VC++6.0 1、配置VC++6.0环境 1) ... -
Python sqllit实例
2010-07-15 10:21 16811、操作数据库 # -*- coding: UTF-8 -* ... -
Python日期计算
2010-05-28 10:38 15941、将字符串转换成date nowDate = time.st ... -
python发送邮件
2010-05-27 11:15 3198# -*- coding:UTF-8 -*- ''' ... -
Python多线程实例
2010-05-08 17:01 1597特别注意: 加锁的位置一定要只包住临界资源,如: self.s ... -
Python实现ping命令
2010-05-08 12:49 10653#!/usr/bin/env python # -*- co ... -
py2exe简单使用
2010-05-06 15:46 13251、首先下载已安装的对应Python版本的py2exe 2、将 ... -
Python截屏程序
2010-05-06 13:31 2384说明:必须安装PIL库 # -*- coding:UTF-8 ... -
Python HTTP文件上传
2010-05-06 11:08 9386# -*- coding:UTF-8 -*- ''' Cr ... -
文件夹差异文件对比工具
2010-05-05 15:44 1468# -*- coding:UTF-8 -*- ''' Cr ... -
Python获取本机公网IP(windows、Linux下通用)
2010-04-23 15:24 3600class Getmyip: def getip(s ... -
Python随机生成字符串
2010-04-22 15:25 1607class RandomUtil(): ... -
Python执行外部程序
2010-04-21 15:52 3965# -*- coding:UTF-8 -*- impo ... -
Python对象转换为xml
2010-04-20 17:41 8017# -*- coding:UTF-8 -*- ''' Cr ...
相关推荐
python gui,wxpython手册,wxpython帮助,离线版本,下载保存成为你的编程助手
wxPython is a blend of wxWidgets and Python programming library. This introductory tutorial provides the basics of GUI programming and helps you create desktop GUI applications
几本很不错的关于python gui的wxPython的书,包括“wxPython in Action(中文版)” 活学活用wxPython “《wxPython in Action》Noel Rappin, Robin Dunn著 2006年版”
用于wxPython的RAD GUI构建IDE。
wxPython学习,用于跨平台的GUI程序开发。
flex添加右键菜单实例。很经典的实例。
主要介绍了python GUI库wxpython使用方法详解,需要的朋友可以参考下
wxPython2.8.rar 包含有2个文件的压缩包,一个是安装文件,一个是示例和文档
本文实例讲述了基于wxpython开发的简单gui计算器。分享给大家供大家参考。具体如下: # wxCalc1 a simple GUI calculator using wxPython # created with the Boa Constructor which generates all the GUI ...
python3.5.2版本的2048小游戏,基于wxpython开发的GUI,解压后有.exe执行文件可以打开直接开始游戏,具体源代码请进我的主页查找~
Capture output from other applications and display it in a wxPython GUI Access platform specific application and resource directories using wxStandardPaths Embed images into python files using ...
wxIconSaver wxPython GUI,用于将图标保存到文件。 文件 测验 聚酰亚胺 活动 质量检查 其他 安装 可以从PyPI安装wxIconSaver 。 要使用pip安装: $ python -m pip install wxIconSaver
使用wxPython GUI工具包编写的,针对Python程序员的跨平台文本编辑器(Windows,Linux,MacOS)! 发展 这是我的最新项目,我将在接下来的几个月中继续研究! :hourglass_not_done: 敬请关注我的PyElite的第一个...
wxPython4.0.6官方demo,里面包含各种wxPython应用的示例代码
rdgui RD60的跨平台wxPython GUI {06,12,18}安装可能打包的先决条件包括: wxPython 麻木脓毒症matplotlib 如果您的操作系统具有用于这些程序的软件包,则建议安装它们。 然后,要么$ virtualenv --system-site-...
iq_framework RAD使用wxPython GUI在Python中开发应用程序的软件平台。
yowsup Whatsapp客户端库周围的原始wxPython GUI。 对于Python 3.5。 仅在Linux上测试。 看起来像这样: 特征 接收来自单人对话和群聊的短信。 用短信回答对话。 与已知联系人发起对话。 支持Unicode表情符号...
wxPython demo 4.2 应用示例 pip install wxpython==4.2 cd \Python37\Scripts wxdemo.exe 下载 wxPython-demo-4.2.0.tar.gz
Radiance falsecolor2 工具的 wxPython GUI 下载 最新的二进制包可以在 Releases 部分找到。 用法 在 Windows 上,只需将 Radiance *.hdr 文件拖放到可执行文件上即可。 命令行:python wxfalsecolor.py [image....
本文实例讲述了python中wxPython菜单的使用方法,分享给大家供大家参考。具体如下: 先来看看下面这段代码: import wx APP_EXIT=1 #定义一个控件ID class Example(wx.Frame): def __init__(self, parent, id, ...