为python脚本编写GUI? [英] Write a GUI for a python script?
问题描述
我是Python的新手。这是一种很棒的语言,但我希望能够为我的一些脚本提供一个简单的gui菜单。更好的东西
比使用''raw_input''提示。
任何一个程序的建议都可以让我创建gui
屏幕? Linux中可用的东西。
谢谢。
I am a newbie with Python. It''s a great language, but I would like to be
able to present a simple gui menu for some of my scripts; something better
than using ''raw_input'' prompts.
Any recommendations for a program that will allow me to create the gui
screens? Something useable in Linux.
thanks.
推荐答案
Tkinter是GUI工具包附带Python,并且在所有平台上都可以获得,而不需要任何
安装工作。这对于简单的事情来说是相当不错的,我会为任何初学者推荐它.b / b
Google forTkinter简介作者:F.隆德。
Michele Simionato
Tkinter is the GUI toolkit that comes with Python and is available on
all platform without any
installation effort. It is quite OK for simple things and I would
recommend it for any beginner.
Google for "An Introduction to Tkinter" by F. Lund.
Michele Simionato
wxPython是另一个不错的选择,特别是因为有
boa-constructor,这是一个很棒的GUI构建器,几乎可以让它变得非常容易
来制作漂亮的应用程序。
http://www.wxpython.org/download.php
http://boa-constructor.sourceforge.net/
如果你决定给wxPython一个去,请确保下载演示,它/ b $ b有大量有用的代码示例。
wxPython is another good option, especially since there is
boa-constructor, which is a great GUI builder, almost makes it too easy
to make a nice looking app in no time at all.
http://www.wxpython.org/download.php
http://boa-constructor.sourceforge.net/
if you decide to give wxPython a go, make sure to download the demo, it
has tons of usefull code samples.
ianaré写道:
ianaré wrote:
wxPython是另一个不错的选择,特别是因为有
boa-constructor,这是一个很棒的选择GUI构建器,几乎可以很容易地立即制作漂亮的应用程序。
http://www.wxpython.org/download.php
http://boa-constructor.sourceforge.net/
<如果您决定给wxPython一个去,请确保下载该演示,它有大量有用的代码示例。
wxPython is another good option, especially since there is
boa-constructor, which is a great GUI builder, almost makes it too easy
to make a nice looking app in no time at all.
http://www.wxpython.org/download.php
http://boa-constructor.sourceforge.net/
if you decide to give wxPython a go, make sure to download the demo, it
has tons of usefull code samples.
什么是一个Hello World wxPython应用程序的最小内存占用
同时(当你cx_freeze / py2exe它时)?
你可以调试&以交互方式从例如呼叫功能Pythonwin正在运行
wxPython应用程序。
(当我几年前使用wxPython进行测试时,它没有选择
步骤/分享它的Messageloop。交互是crusty并且我没有管理
以便顺利调试(在Windows上)。)
Robert
What is the minimal memory footprint of a Hello World wxPython app
meanwhile (when you cx_freeze/py2exe it) ?
Can you debug & call functions interactively from e.g. Pythonwin while a
wxPython app is running.
( When I made a test with wxPython some years ago, it had no option to
step/share its Messageloop. Interaction was "crust"y and I didn''t manage
to get smooth debugging (on Windows). )
Robert
这篇关于为python脚本编写GUI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!