适用于wxPython或Tkinter的GUI设计器的Nice IDE [英] Nice IDE with GUI designer for wxPython or Tkinter

查看:386
本文介绍了适用于wxPython或Tkinter的GUI设计器的Nice IDE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Python开发小型命令行应用程序方面有一点经验。我想继续用Python开发GUI。从Python的可用GUI工具包中,我认为最喜欢的是 wxPython Tkinter ;但是我不想一直自己编写所有的GUI代码。

I have a little experience developing small command-line applications with Python. I want to move on to developing GUIs with Python. From the available GUI toolkits for Python, the ones I feel the most inclined to are wxPython and Tkinter; but I don't want to code all of the GUI by myself all of the time.

这些工具包中是否有任何好的GUI IDE?它不需要是免费的或开源的。

Are there any good GUI IDEs for any of these toolkits? It doesn't need to be free or open source.

推荐答案

我将只讨论WxPython,因为它是我唯一的工具包经验。 TkInter很适合编写小程序(然后它不需要GUI设计器),但它不适合大型应用程序开发。

I will talk only about WxPython because it's the only toolkit I have experience with. TkInter is nice to write small programs (then it doesn't require a GUI Designer), but is not really appropriate for large application development.


  • wxFormBuilder 非常好:它会生成 .XRC 个文件你需要加载你的程序,它可以通过在你使用时对它们进行子类化来生成 .py 文件。

  • wxFormBuilder is really good: it generates .XRC files you need to load in your program, and it can generate .py files by subclassing them when you use.

DialogBlocks wxDesigner 是两个商业软件,它可以直接生成Python代码。我没有因为它们的价格而测试这些。

DialogBlocks and wxDesigner are two commercial software which can generate Python code directly. I didn't tested these much because of their price.

尝试了所有这些之后,我意识到他们有缺陷并且没有什么比在编辑器中编写GUI更好了。问题是扩展的学习曲线。但是后来你会更快,你的代码将比使用GUI设计器更灵活。

After trying all these, I realized they had all flaws and that nothing is better than just writing the GUI in an editor. The problem is the extended learning curve. But then you will be much more faster and your code will be much more flexible than when using a GUI designer.

看看这个主要应用程序列表。您可能会发现其中没有一个使用GUI设计器,必须有这样的理由。

Have a look at this list of major applications written with wxPython. You will probably see that none of these use a GUI Designer, there must be a reason for this.

然后您理解 gs 是正确的说要么切换到PyQt,要么手动编写应用程序。我过去看过Qt Designer,认为这就是我需要的。不幸的是,PyQt有一些许可限制。

You then understand gs is right when saying that either you switch to PyQt or you write your application by hand. I had a look at Qt Designer in the past and thought this was what I needed. Unfortunately PyQt has some license restrictions.

这篇关于适用于wxPython或Tkinter的GUI设计器的Nice IDE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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