Python中的GUI框架? [英] GUI Frameworks in Python?

查看:79
本文介绍了Python中的GUI框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近一直在用Python尝试各种不同的GUI框架和

想知道我是否可以获得关于

不同的优缺点的输入那些...


wxPython:我喜欢wxPython的编程方面,但我发现它只是如此

首先初始化很慢。


Tkinter:虽然加载速度很快,但语法从来没有真正吸引过我。


GTK:未知 - 我今天正在调查它


Qt:我还没有设法在我的系统上安装它


还有别的吗?

Hugh Macdonald

I''ve recently been trying out various different GUI frameworks in Python and
was wondering if I could get your input on the pros and cons of the
different ones...

wxPython: I love the programming side of wxPython, but I find it''s just so
slow to initialise in the first place.

Tkinter: While it''s fast to load up, the syntax has never really appealed to
me

GTK: Unknown - I''m looking into it today

Qt: I have yet to manage to install it on my system

Anything else?
Hugh Macdonald

推荐答案

Hugh Macdonald写道:
Hugh Macdonald wrote:
我最近在Python中尝试了各种不同的GUI框架,并且想知道我是否可以获得关于
不同的利弊的意见......
< wxPython:我喜欢w的编程方面xPython,但我发现它首先初始化的速度很慢。
I''ve recently been trying out various different GUI frameworks in Python and
was wondering if I could get your input on the pros and cons of the
different ones...

wxPython: I love the programming side of wxPython, but I find it''s just so
slow to initialise in the first place.




我不明白这一点,尽管它'之前已经提到了。


在我的机器上,启动wxPython演示应用程序需要大约0秒

才会出现闪屏,我可以立即点击在它上面,然后获得应用程序本身,总发布时间为:不可思议的快速。


我认为,考虑到演示本身的大小,只需要

它所做的任何事情应该代表

同一台机器上的其他应用程序。


为了记录,运行具有足够RAM等的WinXP AMD 2200


这些慢速wxPython启动的报告是否仅来自真正的旧机器或其他东西?


-Peter



I don''t understand this, though it''s been mentioned before.

On my machine, launching the wxPython Demo app takes roughly 0 seconds
before the splash screen appears, and I can immediately click on it
and get the app itself, for a total launch time of: immeasurably fast.

I would think, given the size of the demo itself, that just about
anything it does should be representative of other apps on the
same machine.

For the record, running WinXP AMD 2200 with adequate RAM etc.

Are these reports of slow wxPython startup only coming from really old
machines or something?

-Peter


Peter Hansen写道:
Peter Hansen wrote:
...
我不明白这一点,虽然它是mentio以前。在我的机器上,启动wxPython演示应用程序大约需要0秒
才会出现启动画面,我可以立即点击它
并获取应用程序本身,总发布时间:不可思议的快。
...
I don''t understand this, though it''s been mentioned before.

On my machine, launching the wxPython Demo app takes roughly 0 seconds
before the splash screen appears, and I can immediately click on it
and get the app itself, for a total launch time of: immeasurably fast.




在我的机器上(WinXP Pro,AMD 2400,512MB)需要三点多一点
$在启动画面前b $ b秒,或者显示

主画面的另外两秒钟。加载IDLE需要一点点的时间。


greg



On my machine (WinXP Pro, AMD 2400, 512MB) it takes a little over three
seconds before the splash shows and maybe another two seconds for the
main frame to show. It takes a little over a second to load IDLE.

greg


Greg Krohn写道:
Greg Krohn wrote:
在我的机器上(WinXP Pro,AMD 2400,512MB),在启动画面之前需要三秒多的时间,而
主画面可能需要两秒钟才能显示。加载IDLE需要一点点的时间。
On my machine (WinXP Pro, AMD 2400, 512MB) it takes a little over three
seconds before the splash shows and maybe another two seconds for the
main frame to show. It takes a little over a second to load IDLE.




这里大致相同:演示和我自己的wxPython应用程序需要2-3秒才能获得$

从Mac G5开始。使用Linux的Pentium II 333 MHz大约需要3秒钟,而Win2000也需要
Win2000 - 你不需要用GHz CPU来创建一个带Python的窗口。

唯一我能想到的限制是有限的内存,所以OS需要交换

来先释放一些空间。 CPU速度不是一个严重的因素。

我个人认为wxPython是Python GUI的最佳选择。 Tkinter

应用程序看起来与普通的Windows最终用户相比太陌生了。当然这取决于

目标受众可能是一个问题。


彼得



Roughly the same here: 2-3 seconds for the Demo and my own wxPython app to
start on a Mac G5. Around 3 seconds on my Pentium II 333 MHz with Linux and
Win2000 as well - you don''t need a GHz CPU to create a window with Python.
The only limitation I can think of is limited memory so the OS needs to swap
to free some space first. CPU speed is not a serious factor.
I personally consider wxPython the best choice for a Python GUI. Tkinter
apps look too alien to the common Windows enduser. Of course that depends on
the target audience and might be an issue or not.

Peter


这篇关于Python中的GUI框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆