使用Mozilla构建Python应用程序 [英] Building a Python app with Mozilla

查看:57
本文介绍了使用Mozilla构建Python应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我已经把它发送到Komodo邮件列表(在我看来这是更合适的地方)但不幸的是我没有回应。


我想构建一个Python GUI应用程序。既不是Tkinter也不是Wxpython,也不是
PyQT实际上是我想要的(因为缺乏GUI构建器和

他们在Windows和Linux上看起来并不好看。) br />

Komodo本身就是一个很好的例子 - 至少是Python驱动的 -

应用程序看起来很棒并具有卓越的功能所以它

对我来说使用Komodo方法似乎很自然。


有些问题


*是否有一个简单的方法如何构建一个非常好的方法简单(Python)应用程序

使用Mozilla框架?一种Hello world......?


*有理由认为使用Mozilla构建GUI比使用Python框架更容易
因为Mozilla做了大部分GUI

工作吗?

Thorsten

Hi,

I''ve already sent this to the Komodo mailing list (which seemed to me
the more appropriate place) but unfortunately I got no response.

I''d like to build a Python GUI app. Neither Tkinter nor Wxpython nor
PyQT are actually what I want (because the lack of GUI builders and
they don''t really look good on Windows and Linux).

Komodo itself is an excellent example of a - at least Python driven -
application that looks superb and has superior functionality so it
seems natural to use the Komodo approach for me.

Some questions

* Is there a simple How-To how to build a very simple (Python) app
with the Mozilla framework? Kind of "Hello world"...?

* Is is reasonable to think that building a GUI with Mozilla is easier
than using Python frameworks because Mozilla does most of the GUI
work?
Thorsten

推荐答案

Thorsten Kampe写道:
Thorsten Kampe wrote:




我已将此信息发送到Komodo邮件列表(在我看来是这样的) >
更合适的地方)但遗憾的是我没有回复。


我想构建一个Python GUI应用程序。既不是Tkinter也不是Wxpython,也不是
PyQT实际上是我想要的(因为缺乏GUI构建器和

他们在Windows和Linux上看起来并不好看)。
Hi,

I''ve already sent this to the Komodo mailing list (which seemed to me
the more appropriate place) but unfortunately I got no response.

I''d like to build a Python GUI app. Neither Tkinter nor Wxpython nor
PyQT are actually what I want (because the lack of GUI builders and
they don''t really look good on Windows and Linux).



你显然看起来并不是很难。在wxPython结尾的东西

(我有经验),有wxGlade,XRCed,Boa

构造函数,Dabo等我不知道Tkinter(我不会用它),

但我知道至少Qt有一个非常漂亮的GUI设计师和建造者

(如果你愿意,可以来自奇趣科技为此付出代价),如果我记得正确地确认了

,Eric4提供了一些工具来使PyQt编辑更好并且友好地支付
。我确定还有其他人。


至于所有平台上看起来不太好的wxPython应用程序;我讨厌

给你打破它,但是大多数控件都是* native * on

无论你碰巧使用什么平台(除了基于Qt的前端< * nix中的
,wxPython在* nix中使用Gtk绑定。浏览一下wiki中列出的一些应用程序:
http://wiki.wxpython.org/wxPythonPit_Apps ,甚至是Andrea Gavana的
自定义小部件 http://xoomer.alice.it/infinity77/eng/freeware.html

You apparently didn''t look very hard. On the wxPython end of things
(which I have experience with), there is wxGlade, XRCed, Boa
Constructor, Dabo, etc. I don''t know about Tkinter (I don''t use it),
but I know that at least Qt has a very nice GUI designer and builder
(from Trolltech if you are willing to pay for it), and if I remember
correctly, Eric4 offers some tools to make PyQt editing nice and
friendly. I''m sure there are others.

As for wxPython applications not looking good on all platforms; I hate
to break it to you, but the majority of the controls are *native* on
whatever platform you happen to be using (except for Qt-based frontends
in *nix, wxPython uses a Gtk binding in *nix). Take a browse through a
few of the applications listed in the wiki:
http://wiki.wxpython.org/wxPythonPit_Apps , or even Andrea Gavana''s
custom widgets http://xoomer.alice.it/infinity77/eng/freeware.html .


Komodo本身就是一个很好的例子 - 至少是Python驱动的 -

应用程序看起来很棒并具有卓越的功能所以它

似乎很自然地使用Komodo方法。
Komodo itself is an excellent example of a - at least Python driven -
application that looks superb and has superior functionality so it
seems natural to use the Komodo approach for me.



我本可以宣誓Komodo是用PyQt编写的。除非我的记忆是否让我失望(可疑,因为他们至少曾经提供过一些PyQt

开发工具),我想他们只是嵌入了mozilla

带有一些C扩展的点点滴滴。


无论如何,你真的不想使用

XPI开发应用程序。根据我曾经和XPI谈过的每个人,虽然得到了基本的工作并不是很糟糕,做任何值得一提的事情都是

屁股上的痛苦,而不仅仅是写在8088的一切

汇编。你的里程可能会有所不同。

I could have sworn that Komodo was written in PyQt. Unless my memory is
failing me (doubtful, as they at least used to offer some PyQt
development tools), I would imagine they merely embedded the mozilla
bits and pieces with some C extensions.

In any case, you really don''t want to be developing an application using
XPI. According to everyone I''ve ever talked to about XPI, while getting
the basic stuff working isn''t bad, doing anything worth mentioning is
about as big a pain in the butt than just writing everything in 8088
assembly. You mileage may vary of course.


*是否有一个简单的操作方法如何构建一个非常简单的(Python)应用程序

与Mozilla框架?种类为Hello world......?
* Is there a simple How-To how to build a very simple (Python) app
with the Mozilla framework? Kind of "Hello world"...?



也许。您应该使用的搜索词是''嵌入XPI python'',它给我带来了大约189k的谷歌搜索结果,其中一些似乎适用于

首页(其中也让我相信我关于

Komodo嵌入mozilla技术的陈述可能是正确的,尽管也许他们用b和Qt写了Komodo。

Maybe. Search terms you should use are ''embed XPI python'', which give
me about 189k results in google, some of which seem applicable on the
first page (which also leads me to believe that my statements regarding
Komodo embedding mozilla technology may be right, though maybe they
wrote Komodo in C and Qt).


*认为使用Mozilla构建GUI比使用Python框架更容易是合理的,因为Mozilla完成了大部分GUI

工作?
* Is is reasonable to think that building a GUI with Mozilla is easier
than using Python frameworks because Mozilla does most of the GUI
work?



令人怀疑。使用XRCed和wxPython构建GUI应用程序非常简单,如果您了解Python和面向对象的编程。有一些令人讨厌的变幻莫测的事件,但如果你在

wxpython-users邮件列表(在wxpython.org上)提出你的问题,至少有一个

六个人可能会回答你的问题。

- Josiah

Doubtful. Building a GUI app with XRCed and wxPython is pretty easy if
you understand Python and object-oriented programming. There are some
annoying vagaries with events, but if you ask your questions on the
wxpython-users mailing list (over at wxpython.org), one of at least a
half-dozen people will likely answer your question.
- Josiah


你显然看不出来很难。在wxPython结尾的东西
You apparently didn''t look very hard. On the wxPython end of things

(我有经验),有wxGlade,XRCed,Boa

构造函数,Dabo等我不知道Tkinter(我不会用它),

但我知道至少Qt有一个非常漂亮的GUI设计师和建造者

(来自奇趣科技,如果你愿意付钱的话),如果我记得正确的话,那么Eric4会提供一些工具来让PyQt编辑得更好,而且b $ b友好。我确定还有其他人。
(which I have experience with), there is wxGlade, XRCed, Boa
Constructor, Dabo, etc. I don''t know about Tkinter (I don''t use it),
but I know that at least Qt has a very nice GUI designer and builder
(from Trolltech if you are willing to pay for it), and if I remember
correctly, Eric4 offers some tools to make PyQt editing nice and
friendly. I''m sure there are others.



你对Qt有点不对劲。设计师是免费的(我从来没有使用商业Qt,也许还有额外的东西 - 但是如果我这么做的话,那么
对于它能做什么并不是最微弱的想法这将使它比免费设计师更好

。)

和eric很酷并且与Qt集成(并且是Qt-app的一个例子

本身),通过启动设计师 - 但它没有任何

gui-building东西。


Diez

You''re somewhat wrong regarding Qt. The designer is free (I did never
use a commercial Qt, maybe there comes something additional - but IF I
don''t have the faintest idea what it could do that would make it better
than the free designer.)

And eric is cool and integrates with Qt (and is an example of a Qt-app
itself), via launching the designer - but it hasn''t have any
gui-building stuff in there.

Diez


Thorsten Kampe schrieb:
Thorsten Kampe schrieb:




我已经把它发送到Komodo邮件列表(在我看来这是更合适的地方)但不幸的是我没有回复。


我我想构建一个Python GUI应用程序。既不是Tkinter也不是Wxpython,也不是
PyQT实际上是我想要的(因为缺乏GUI构建器和

他们在Windows和Linux上看起来并不好看)。
Hi,

I''ve already sent this to the Komodo mailing list (which seemed to me
the more appropriate place) but unfortunately I got no response.

I''d like to build a Python GUI app. Neither Tkinter nor Wxpython nor
PyQT are actually what I want (because the lack of GUI builders and
they don''t really look good on Windows and Linux).



后一种说法是假的。 Qt是KDE的原生外观。 GTK for

Gnome。那么它怎么不在linux上看起来不错?


正如在这个帖子中已经说过的那样,Qt有一个很好的免费

GUI -builder。


Diez

The latter statement is bogus. Qt is THE native look on KDE. GTK for
Gnome. So how is it not "looking good on linux"?

And as it has been said in this thread already, Qt has an excellent free
GUI-builder.

Diez


这篇关于使用Mozilla构建Python应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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