网格几何的GUI设计应用程序

网格几何的GUI设计应用程序

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

问题描述

有谁知道一个GUI设计应用程序,它可以让你选择/拖放这些小部件,然后用适当的Tkinter调用&使用网格几何管理器进行排列?到目前为止,我已经发现了一些可能最终使用的非常好的选项,但它们使用 pack 或 place 代替。



在你说出来之前:是的,我知道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.

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设计应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 20:17