关于与Python 3.0兼容的GUI编辑器

时间:2022-01-05 11:20:39

I would like to start learning Python (zero past experience). I am a bit inclined to start with Python 3.0. However, I am not sure if at this time there exists a GUI editor that would be compatible with Python 3.0. I've tried installing Glade, but the one I've got works only with Python 2.5. What could I possibly use with Python 3.0? Any suggestions are welcomed. Thanks!

我想开始学习Python(零过去的经验)。我有点倾向于从Python 3.0开始。但是,我不确定此时是否存在与Python 3.0兼容的GUI编辑器。我已经尝试过安装Glade,但我得到的只能使用Python 2.5。我可以在Python 3.0中使用什么?欢迎任何建议。谢谢!

6 个解决方案

#1


There are many useful libraries (not to mention educational material, cookbook snippets, etc.) that have yet to be ported to Python 3.0, so I recommend using Python 2.x for now (where, currently, 5 <= x <= 6). Doubly so if you're a beginner to Python. Triply so if you're actually planning on releasing some software--many systems do not ship with Python 3.0.

有许多有用的库(更不用说教育材料,食谱片段等)尚未移植到Python 3.0,所以我建议现在使用Python 2.x(其中,当前,5 <= x <= 6 )。如果你是Python的初学者,那么双重如此。如果您实际上计划发布一些软件,那么Triply也是如此 - 许多系统都不附带Python 3.0。

Python 3.0 is not radically different from the Python 2.x series; what you learn in Python 2 will very much still apply to Python 3. Searching Python 3.0 here on SO reveals many threads in which the majority declare that they're not moving to Python 3.0 anytime soon.

Python 3.0与Python 2.x系列没有根本的不同;你在Python 2中学到的东西将非常适用于Python 3.在这里搜索Python 3.0揭示了许多线程,其中大多数人声称他们不会很快转向Python 3.0。

#2


If your looking for a GUI editor, have a look at these:

如果您正在寻找GUI编辑器,请查看以下内容:

  • wxFormBuilder can generate .XRC files for wxpython.
  • wxFormBuilder可以为wxpython生成.XRC文件。

  • XRCed ships with wxpython and could do this as well.
  • XRCed随附wxpython,也可以这样做。

.XRC files are xml file which describes your GUI and are not language specific. You could load these files from a Python 2.6 and a Python 3.0 without any change.

.XRC文件是xml文件,它描述了您的GUI并且不是特定于语言的。您可以从Python 2.6和Python 3.0加载这些文件而不做任何更改。

WxPython is currently available only for Python 2.6 though. I would not worry too much about converting a python 2.6 to 3.0. This is the matter of a few lines to change.

WxPython目前仅适用于Python 2.6。我不会太担心将python 2.6转换为3.0。这是几条改变的问题。

The problem with the .XRC approach is that you still need to glue these xml files with Python code. If you're a beginner this might be as tricky as writing the GUI by hand. That's the problem with WxPython anyway: I don't know any real good editor for it, have a look at this discussion

.XRC方法的问题在于您仍然需要使用Python代码粘合这些xml文件。如果你是初学者,这可能与手工编写GUI一样棘手。无论如何,这就是WxPython的问题:我不知道任何真正优秀的编辑器,请看看这个讨论

#3


Just use whichever editor you are most comfortable with.

只需使用您最熟悉的编辑器即可。

The "leading space as logic" and duck typing mean that there is a limited amount of syntax checking and re-factoring an editor can reasonably do (or is required!) with python source.

“领先的空间作为逻辑”和鸭子打字意味着有一定数量的语法检查和重新分解编辑器可以合理地(或需要!)与python源。

If you dont have a favorite editor then just use the "idle" editor which comes with most python distributions.

如果您没有最喜欢的编辑器,那么只需使用大多数python发行版附带的“idle”编辑器。

If you were talking about a GUI design tool then you need to choose among the several supported GUIs (Tk, WxWindows etc. etc.) before you choose your design tool.

如果您正在讨论GUI设计工具,那么在选择设计工具之前,您需要在几个支持的GUI(Tk,WxWindows等等)中进行选择。

#4


The only GUI toolkit currently available in Python3.0 is Tkinter, and I don't think there are any Python3.0 GUI-builders available yet.

Python3.0中目前唯一可用的GUI工具包是Tkinter,我认为还没有任何Python3.0 GUI构建器可用。

#5


WING 3.2 beta work in python 3.

WING 3.2 beta在python 3中工作。

ricnar

#6


PyQt 4.5 (released a couple of days ago) added support for Python 3

PyQt 4.5(几天前发布)增加了对Python 3的支持

That doesn't of course devaluate gotgenes answer: most of the 3rd party libraries are just not ready yet for Python 3.

这当然不会贬低gotgenes的答案:大多数第三方库还没有为Python 3做好准备。

#1


There are many useful libraries (not to mention educational material, cookbook snippets, etc.) that have yet to be ported to Python 3.0, so I recommend using Python 2.x for now (where, currently, 5 <= x <= 6). Doubly so if you're a beginner to Python. Triply so if you're actually planning on releasing some software--many systems do not ship with Python 3.0.

有许多有用的库(更不用说教育材料,食谱片段等)尚未移植到Python 3.0,所以我建议现在使用Python 2.x(其中,当前,5 <= x <= 6 )。如果你是Python的初学者,那么双重如此。如果您实际上计划发布一些软件,那么Triply也是如此 - 许多系统都不附带Python 3.0。

Python 3.0 is not radically different from the Python 2.x series; what you learn in Python 2 will very much still apply to Python 3. Searching Python 3.0 here on SO reveals many threads in which the majority declare that they're not moving to Python 3.0 anytime soon.

Python 3.0与Python 2.x系列没有根本的不同;你在Python 2中学到的东西将非常适用于Python 3.在这里搜索Python 3.0揭示了许多线程,其中大多数人声称他们不会很快转向Python 3.0。

#2


If your looking for a GUI editor, have a look at these:

如果您正在寻找GUI编辑器,请查看以下内容:

  • wxFormBuilder can generate .XRC files for wxpython.
  • wxFormBuilder可以为wxpython生成.XRC文件。

  • XRCed ships with wxpython and could do this as well.
  • XRCed随附wxpython,也可以这样做。

.XRC files are xml file which describes your GUI and are not language specific. You could load these files from a Python 2.6 and a Python 3.0 without any change.

.XRC文件是xml文件,它描述了您的GUI并且不是特定于语言的。您可以从Python 2.6和Python 3.0加载这些文件而不做任何更改。

WxPython is currently available only for Python 2.6 though. I would not worry too much about converting a python 2.6 to 3.0. This is the matter of a few lines to change.

WxPython目前仅适用于Python 2.6。我不会太担心将python 2.6转换为3.0。这是几条改变的问题。

The problem with the .XRC approach is that you still need to glue these xml files with Python code. If you're a beginner this might be as tricky as writing the GUI by hand. That's the problem with WxPython anyway: I don't know any real good editor for it, have a look at this discussion

.XRC方法的问题在于您仍然需要使用Python代码粘合这些xml文件。如果你是初学者,这可能与手工编写GUI一样棘手。无论如何,这就是WxPython的问题:我不知道任何真正优秀的编辑器,请看看这个讨论

#3


Just use whichever editor you are most comfortable with.

只需使用您最熟悉的编辑器即可。

The "leading space as logic" and duck typing mean that there is a limited amount of syntax checking and re-factoring an editor can reasonably do (or is required!) with python source.

“领先的空间作为逻辑”和鸭子打字意味着有一定数量的语法检查和重新分解编辑器可以合理地(或需要!)与python源。

If you dont have a favorite editor then just use the "idle" editor which comes with most python distributions.

如果您没有最喜欢的编辑器,那么只需使用大多数python发行版附带的“idle”编辑器。

If you were talking about a GUI design tool then you need to choose among the several supported GUIs (Tk, WxWindows etc. etc.) before you choose your design tool.

如果您正在讨论GUI设计工具,那么在选择设计工具之前,您需要在几个支持的GUI(Tk,WxWindows等等)中进行选择。

#4


The only GUI toolkit currently available in Python3.0 is Tkinter, and I don't think there are any Python3.0 GUI-builders available yet.

Python3.0中目前唯一可用的GUI工具包是Tkinter,我认为还没有任何Python3.0 GUI构建器可用。

#5


WING 3.2 beta work in python 3.

WING 3.2 beta在python 3中工作。

ricnar

#6


PyQt 4.5 (released a couple of days ago) added support for Python 3

PyQt 4.5(几天前发布)增加了对Python 3的支持

That doesn't of course devaluate gotgenes answer: most of the 3rd party libraries are just not ready yet for Python 3.

这当然不会贬低gotgenes的答案:大多数第三方库还没有为Python 3做好准备。