如何在Python中进行GUI编程? [英] How is GUI programming in Python?

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

问题描述

我一直对Python很感兴趣,并想进一步了解它。

。我已经完成了一些非常小的命令行程序,但是没有任何复杂性。我想构建一个非常简单的GUI应用程序

,可以在Mac,Windows和Linux上运行。

会有多痛苦?几年前我曾经非常熟悉Java Swing

前。我想它会是类似的。


接下来,你会说什么是我应该研究的最好的框架?

我很想听到意见在那上面。


Chris Stewart
cs ***** ****@gmail.com

I''ve always had an interest in Python and would like to dabble in it
further. I''ve worked on a few very small command line programs but
nothing of any complexity. I''d like to build a really simple GUI app
that will work across Mac, Windows, and Linux. How painful is that
going to be? I used to be really familiar with Java Swing a few years
ago. I imagine it will be similar.

Next, what would you say is the best framework I should look into?
I''m curious to hear opinions on that.

Chris Stewart
cs*********@gmail.com

推荐答案

Chris Stewart< cs ******** *@gmail.comwrites:
Chris Stewart <cs*********@gmail.comwrites:

我一直对Python很感兴趣,并且想进一步学习它b / b
。我已经完成了一些非常小的命令行程序,但是没有任何复杂性。我想构建一个非常简单的GUI应用程序

,可以在Mac,Windows和Linux上运行。

会有多痛苦?几年前我曾经非常熟悉Java Swing

前。我想它会是类似的。

...

接下来,你会说什么是我应该研究的最佳框架?
I''ve always had an interest in Python and would like to dabble in it
further. I''ve worked on a few very small command line programs but
nothing of any complexity. I''d like to build a really simple GUI app
that will work across Mac, Windows, and Linux. How painful is that
going to be? I used to be really familiar with Java Swing a few years
ago. I imagine it will be similar.
...
Next, what would you say is the best framework I should look into?



如果是最佳你的意思是最简单,这可能是tkinter,它是带有python的
。它有些简陋,而且随着它看起来不那么好看的小部件。但是如果你只想提出基本功能并且没有多少浮华的GUI,那么大多数

这样的目的都可以。

out out how

If by "best" you mean "easiest", that is probably tkinter, which
comes with python. It is somewhat rudimentary and the widgets that
come with it don''t look so great. But if you just want to put up
GUI''s with basic functionality and not much glitz, it is ok for most
such purposes.
out how to use


4月9日晚上8:54,Chris Stewart< cstewart ... @ gmail.comwrote:
On Apr 9, 8:54 pm, Chris Stewart <cstewart...@gmail.comwrote:

我一直对Python很感兴趣,并想进一步涉足它。

。我已经完成了一些非常小的命令行程序,但是没有任何复杂性。我想构建一个非常简单的GUI应用程序

,可以在Mac,Windows和Linux上运行。

会有多痛苦?几年前我曾经非常熟悉Java Swing

前。我想它会是类似的。
I''ve always had an interest in Python and would like to dabble in it
further. I''ve worked on a few very small command line programs but
nothing of any complexity. I''d like to build a really simple GUI app
that will work across Mac, Windows, and Linux. How painful is that
going to be? I used to be really familiar with Java Swing a few years
ago. I imagine it will be similar.



既然它是Python,它将比任何东西都轻松得多

else。 :)

Since it''s Python, it will be a lot less painless than anything
else. :)


>

接下来,你会说什么是我应该研究的最佳框架?
$ b $我很好奇听到这个意见。
>
Next, what would you say is the best framework I should look into?
I''m curious to hear opinions on that.



Tkinter对于小应用程序来说是最简单的,但是当我正在做任何事情时,我会使用PyQt来实现

Tkinter is the easiest for little apps, but when I''m doing anything
for real, I use PyQt.


>

Chris Stewart

cstewart ... @ gmail.com
>
Chris Stewart
cstewart...@gmail.com


4月10日下午12:35,Benjamin< musiccomposit ... @ gmail.comwrote:
On Apr 10, 12:35 pm, Benjamin <musiccomposit...@gmail.comwrote:

4月9日晚上8点54分,克里斯·斯图尔特< cstewart ... @ gmail.com写道:我一直对Python很感兴趣,并想参与其中
On Apr 9, 8:54 pm, Chris Stewart <cstewart...@gmail.comwrote:I''ve always had an interest in Python and would like to dabble in it

。我已经完成了一些非常小的命令行程序,但是没有任何复杂性。我想构建一个非常简单的GUI应用程序

,可以在Mac,Windows和Linux上运行。

会有多痛苦?几年前我曾经非常熟悉Java Swing

前。我想它会是类似的。
further. I''ve worked on a few very small command line programs but
nothing of any complexity. I''d like to build a really simple GUI app
that will work across Mac, Windows, and Linux. How painful is that
going to be? I used to be really familiar with Java Swing a few years
ago. I imagine it will be similar.



因为它是Python,所以它比任何东西都要轻松得多

else。 :)


Since it''s Python, it will be a lot less painless than anything
else. :)


接下来,你会说什么是我应该研究的最好的框架?

我很想听到意见那。
Next, what would you say is the best framework I should look into?
I''m curious to hear opinions on that.



Tkinter对于小应用程序来说是最简单的,但是当我正在做任何事情时,我使用PyQt来实现


Tkinter is the easiest for little apps, but when I''m doing anything
for real, I use PyQt.


Chris Stewart

cstewart ... @ gmail.com
Chris Stewart
cstewart...@gmail.com



由于OP具有Swing编程经验,Jython怎么样?
http://www.jython.org/Project/index.html)?


Jython是高级别的实现,动态,对象 -

面向语言Python用100%纯Java编写,无缝地与Java平台集成
。因此,它允许您在任何Java平台上运行Python。


-

Kam-Hung Soh< a href =" http://kamhungsoh.com/blog">软件Salariman< /

a>

Since the OP has Swing programming experience, what about Jython
(http://www.jython.org/Project/index.html)?

"Jython is an implementation of the high-level, dynamic, object-
oriented language Python written in 100% Pure Java, and seamlessly
integrated with the Java platform. It thus allows you to run Python on
any Java platform."

--
Kam-Hung Soh <a href="http://kamhungsoh.com/blog">Software Salariman</
a>


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

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