2005年02月06日 星期日 23:43
你的代码不全。 唐国巍 wrote: > python-chinese,您好! > > 我在一个窗口中建立了一个按钮bt_1 = wxButton(self, -1, "Press me!", wxPoint(25,15), wxSize(25,15)) 可是这个按钮随着窗口的变大而变大,随着窗口的缩小而缩小,这是哪里出了问题? > -- I love python! My Blog: http://www.donews.net/limodou
2005年02月06日 星期日 23:51
Hui Xu,您好! unicode版本应该是可以支持中文的 ======= 2005-02-06 22:07:00 您在来信中写道:======= >见笑了 >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese = = = = = = = = = = = = = = = = = = = = 致 礼! 唐国巍 tgw_cl at 163.net 2005-02-06
2005年02月06日 星期日 23:54
limodou,您好!
from wxPython.wx import *
class MyFrame(wxFrame):
def __init__(self, parent, ID, title):
wxFrame.__init__(self, parent, ID, title,
wxPoint(100,100), wxSize(100, 100))
bt_1 = wxButton(self, 15, "Press me!", wxPoint(25,15), wxSize(25,15))
class MyApp(wxApp):
def OnInit(self):
frame = MyFrame(NULL, -1, "Hello from wxPython")
frame.Show(true)
self.SetTopWindow(frame)
return true
app = MyApp(0)
app.MainLoop()
除了bt_1=那行,其它的都是从wxPython网站贴来的
======= 2005-02-06 23:43:00 您在来信中写道:=======
>你的代码不全。
>
>唐国巍 wrote:
>> python-chinese,您好!
>>
>> 我在一个窗口中建立了一个按钮bt_1 = wxButton(self, -1, "Press me!", wxPoint(25,15), wxSize(25,15)) 可是这个按钮随着窗口的变大而变大,随着窗口的缩小而缩小,这是哪里出了问题?
>>
>
>
>--
>I love python!
>My Blog: http://www.donews.net/limodou
>_______________________________________________
>python-chinese list
>python-chinese at lists.python.cn
>http://python.cn/mailman/listinfo/python-chinese
= = = = = = = = = = = = = = = = = = = =
致
礼!
唐国巍
tgw_cl at 163.net
2005-02-06
Zeuux © 2025
京ICP备05028076号