ChinaUnix.net
相关文章推荐:

wxpython TextCtrl

wxpython中,StaticText可以用SetLabel来显示文字,由于其默认的底色与frame相同,所以它也可以用来作布局上的空白区。 textctrl在frame上显示为一个凹进去的文本框,其中的文本操作可以使用SetValue和GetValue方法。 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/43271/showart_375760.html

by mystérieux - Python文档中心 - 2007-09-06 19:36:49 阅读(1773) 回复(0)

相关讨论

a=open('foo.txt','r') b=a.read() self.control = wx.textctrl(self, 1, size=(800, 500), style=wx.TE_MULTILINE) self.control.SetValue(str(b)) 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/43271/showart_360593.html

by mystérieux - Python文档中心 - 2007-08-15 16:22:24 阅读(1789) 回复(0)

各位大侠,查阅了很多资料,任然没有查到,如何使用wxpython实现下列需求, 选中wxCheckbox, 然后弹出一个文本输入框,并接受输入信息。谢谢。

by zhangjianrencai - Python - 2013-03-09 22:45:50 阅读(1301) 回复(1)

请问大家有没有用过wxpython? 大家wxpython这个框架怎样呢?

by heidonglgc - Python - 2008-01-17 17:15:07 阅读(2294) 回复(4)

Base Widgets Top level Widgets Containers Dynamic Widgets Static Widgets Other Widgets Inheritance 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/109054/showart_2165208.html

by pywugw - Python文档中心 - 2010-01-30 23:28:26 阅读(4853) 回复(0)

本帖最后由 hucuibai 于 2014-08-19 17:39 编辑 {'sername': u'测试1服', u'old': 28.0, u'name': u'hucuibai'} {'sername': u'测试1服', u'old': 22.0, u'name': u'\u80e1\u7fe0\u67cf'} {'sername': u'测试1服', u'name': u'xiaobai'} {'sername': u'测试1服', u'old': 99.0, u'name': u'xiaobaicat', u'sex': 1.0} {'sername': u'测试1服', u'old': 28.0, u'name': u'hucuibai'} {'sername': u'测试2服', u'old': 22.0, u'na...

by hucuibai - Python - 2014-08-21 15:22:44 阅读(2471) 回复(7)

本帖最后由 wally_wu 于 2011-01-18 15:47 编辑 我用wx.lib.iewin.IEHtmlWindow载入了一个远程网址的网页 怎么才能获取整个网页的源代码? 我用GetText()获取的一直是NoneType控制,但网页已经加载了 期待指正,最好能贴上一段代码 还有就是iehtmlwindow的参考手册 API 总是找不到,如果有的麻烦给份 wuxuekai#gmail.com 给力... 已解决....

iehtmlwindow

by wally_wu - Python - 2012-07-18 14:21:32 阅读(2081) 回复(1)

Hi ! below is a simple code that I modified from WWW. as I run it, first time after I enter a number, it calcutes correct ! from second time on , regardless of whatever I enter a number, it calcutes wrong ! I trace it , seems self.tCalc.GetValue() not effect ! I'm confusing about it. please help & indicate what it is going wrong here. thanks a lot. #!/usr/bin/python import wx # --- Define a cust...

by mjus - Python - 2009-08-14 22:54:56 阅读(1290) 回复(3)

wxpython in Action> 关于本书就不再做太多的介绍了,想必大家都已经十分清楚了,是一个介绍wxpython编程的经典书籍,英文版的电子书可以在网上下载得到,但是国内一直没有中文译本,在这里推荐一个本书的翻译网站,想来一定会在大家有所帮助的! http://www.pythontik.com/blog/default.asp?tag=wxpython Enjoy it~~ 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/19185/showart_1286811.h...

by mylxiaoyi - Python文档中心 - 2008-10-12 10:41:46 阅读(1794) 回复(0)

import wx app = wx.PySimpleApp() frame = wx.Frame(None, wx.ID_ANY, "Hello World") frame.Show(True) app.MainLoop() 这段代码在IDLE运行可以成功,但是在命令提示符下为什么说:N o Module named wx

by rubee - Python - 2007-09-11 12:38:26 阅读(2572) 回复(3)

最近在看python,这个东东。方便快,好用呵呵,推荐大家看看Dive.Into.Python电子书,它在python相当与c++ primer这本书。 Python自带的GUI太不爽了,还是用wxpython吧。 在 wxpython下载 注意选择与您的python版本相对应的wxpython,这里我用的是python2.5选择相对的wxpython. 安装默认的wxpython即可。 来一个hello world吧! “”” Usage: python hello.py “”” import wx #引入wxpython包 app=wx.PySimpleApp() #创...

by vmoon - Python文档中心 - 2007-07-21 13:31:45 阅读(1089) 回复(0)