pythongui性能,如何加速python应用程序GUI的速度

Hi,all

I use wxPython make a bittorrent client. I find wxPython very slow and

use many many memory.

When app start, it need 19MB memory. I only use common GUI components.

Python is a really good

programming language. But how to do a small,smart, efficency GUI in

win32,it''s a big question.

I need make GUI,core code is bittorrent code. I can''t change it.it''s

really good code.

I read book ''Python Programming on Win32'' ,I get following idea. I

test it.

1. Use wxpython ,it''s successful,but very slow .

2. use python for delphi. I test it, but it need embed python code to

delphi. So need

change original code.Actually I don''t know how to change .it''s big

project.

3. User win32com, make a com server by delphi. com server have form.

make python code

as com client. I make a com server and invoke the server by

pythonwin. but the form

can''t show. :( anyone do it ,could you share you code to world.

4. use pythonwin. mfc or win32gui framework. I check the demo code,

it''s very complex.

you know I hate MFC. it''s a joke. i like VCL so much.

5. I have a another idea. use wxWindows (c lan) build a GUI. embed

python code .

or embed wxWindows code to python by SWIG. I have''t test it. if you

have do it.

Please tell us.

Thanks.

Ulysses

ul********@yahoo.com.cn

解决方案ul********@yahoo.com.cn (ulysses) writes:

Hi,all

I use wxPython make a bittorrent client. I find wxPython very slow and

use many many memory.

When app start, it need 19MB memory. I only use common GUI components.

Python is a really good

programming language. But how to do a small,smart, efficency GUI in

win32,it''s a big question.

An solution is to make a web application and use a tiny browser like

kmeleon.

bye

--

William Dode - http://flibuste.net

ul********@yahoo.com.cn (ulysses) writes:

[...]Python is a really good programming language. But how to do a

small,smart, efficency GUI in win32,it''s a big question.

http://venster.sourceforge.net/

[...] 4. use pythonwin. mfc or win32gui framework. I check the demo code,

it''s very complex. you know I hate MFC. it''s a joke. i like VCL so

much.

Well, if you hate win32 also, then you won''t like venster.

5. I have a another idea. use wxWindows (c lan) build a GUI. embed

python code . or embed wxWindows code to python by SWIG. I have''t

test it. if you have do it. Please tell us.

Interesting idea.

John

Wilk writes:

ul********@yahoo.com.cn (ulysses) writes:

[...] An solution is to make a web application and use a tiny browser like

kmeleon.

Or MSIE, possibly using HTA.

John

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值