是否有 Tkinter/网格几何图形的 GUI 设计应用程序? [英] Is there a GUI design app for the Tkinter / grid geometry?

查看:22
本文介绍了是否有 Tkinter/网格几何图形的 GUI 设计应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道一个 GUI 设计应用程序,它可以让您选择/拖放小部件,然后使用适当的 Tkinter 调用将该布局转换为 Python 代码 &使用 grid 几何管理器安排?到目前为止,我已经找到了一些我可能最终会使用的非常好的选项,但它们使用 packplace 生成代码.

=========

请注意,这不是寻求建议".本身,而是一个事实调查.我在问这样的应用是否存在.

=====

在你说之前:是的,我知道 Tkinter 很容易学习,是的,我已经找到了多个在线资源来帮助我这样做,而且我已经在努力学习了.这不是要避免学习的努力,而是要使用正确的工具来完成工作.我很久以前就发现,当项目超过一定规模时,那些用于编码程序逻辑的拖放小部件环境太笨拙且难以管理——对于更大的东西,构建和维护逻辑更容易当它是纯文本时.最近,我发现设计 GUI 的情况正好相反.编写文本在一定程度上是可行的,但是当您有一个包含 30 或 40 个小部件的主窗口,以及几个具有相似复杂性的侧窗口时,如果您可以图形化设计而不是全部输入,它会变得更快、更容易.

解决方案

你有 VisualTkinter 也称为 Visual Python.发展似乎并不活跃.你有 还计划实施网格几何,因为它的文档中说它还没有准备好'.不幸的是,它似乎几乎"被放弃了.

Does anyone know of a GUI design app that lets you choose/drag/drop the widgets, and then turn that layout into Python code with the appropriate Tkinter calls & arrangement using the grid geometry manager? So far I've turned up a couple of pretty nice options that I may end up using, but they generate code using either pack or place instead.

=========

EDIT: Please note this is not to seek a "recommendation" per se, but rather it is a factual inquiry. I was asking whether or not such an app exists.

=====

Before you say it: Yes, I know Tkinter is easy to learn, and Yes, I've found multiple online sources to help me do so, and I'm already on my way with that. This isn't about avoiding the effort of learning, it's about using the right tool for the job. I found out a long time ago that those drag-and-drop widget environments for coding program logic, are just too klunky and unmanageable when the project gets beyond a certain size -- for bigger stuff, it's just easier to build and maintain the logic when it's in plain text. More recently I've found out that the reverse is true for designing a GUI. Writing text works up to a point, but when you have a main window with 30 or 40 widgets, plus a couple of side windows each with similar complexity, it goes much faster and easier if you can design it graphically rather than typing it all out.

解决方案

You have VisualTkinter also known as Visual Python. Development seems not active. You have sourceforge and googlecode sites. Web site is here.

On the other hand, you have PAGE that seems active and works in python 2.7 and py3k

As you indicate on your comment, none of these use the grid geometry. As far as I can say the only GUI builder doing that could probably be Komodo Pro GUI Builder which was discontinued and made open source in ca. 2007. The code was located in the SpecTcl repository.

It seems to install fine on win7 although has not used it yet. This is an screenshot from my PC:

By the way, Rapyd Tk also had plans to implement grid geometry as in its documentation says it is not ready 'yet'. Unfortunately it seems 'nearly' abandoned.

这篇关于是否有 Tkinter/网格几何图形的 GUI 设计应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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