包装 Tkinter/ttk 的高级框架
好奇是否有任何更高级别的框架尝试包装 Tkinter?例如,wxPython由Dabo框架(http://dabodev.com/)和PythonCard包装。
动机:我们最近转向了 Python 2.7 (Windows),并对新的 ttk (Tile) 支持印象深刻,它允许我们使用内置的 Tkinter 框架构建专业品质的平台本机 GUI。过去,我们会使用 wxPython 为命令行实用程序创建简单的 GUI 界面,但我们正在重新考虑这一策略,转而在这些用例中使用 Tkinter/ttk。
我们是 Tkinter 的新手(来自 wxPython),虽然 Tkinter/ttk 似乎易于使用,但我们正在编写大量重复的样板代码。在我们尝试将一些代码包装到自制的一组类中之前,我想确保我们没有重新发明轮子。
Curious if there are any higher level frameworks that attempt to wrap Tkinter? For example, wxPython is wrapped by the Dabo framework (http://dabodev.com/) and PythonCard.
Motivation: We've recently moved to Python 2.7 (Windows) and are very impressed with the new ttk (Tile) support which allows one to build professional quality, platform native GUI's using the built-in Tkinter framework. In the past we would have used wxPython to create simple GUI interfaces for our command line utilities, but we're re-thinking this strategy in favor of using Tkinter/ttk for these use cases.
We're new to Tkinter (coming from wxPython) and while Tkinter/ttk seem to be simple to use, there seems to be a lot of repeated boilerplate code that we're writing. Before we try to wrap up some of our code in a home made set of classes, I want to make sure that we're not re-inventing the wheel.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对你来说可能有点晚了。但我刚刚发布了一个名为 tKroopy 的测试版 tkinter 框架。其目的是提供一种在对话框之间切换的方法并提供一些更高级别的小部件,例如轻松显示表格数据。
它设计用于构建大量中小型应用程序并将它们组合在一个应用程序中,但您也没有理由不能使用它来构建单个大型应用程序。
https://github.com/tKroopy/tkroopy
Probably a little bit late for you. But I've just released a tkinter framework in beta called tKroopy. Which aims to provide a means for switching between dialogs and provide some higher level widgets, like easily displaying tabulated data.
It was designed for building lots of small to medium applications and grouping them together in a single application, but there is no reason why you couldn't use it to build a single large scale application too.
https://github.com/tKroopy/tkroopy
我所知道的唯一一个似乎已经过时了,Python megawidgets。
您可以在 Tkinter wiki 上找到其他列表。
The only one I knew about seems quite stale, Python megawidgets.
You can find a list of others on the Tkinter wiki.
tkRAD 支持 python 2 和 3,看起来很成熟
https://pypi.python.org/pypi/ tkRAD/1.6.5
tkRAD supports python 2 and 3 and looks mature
https://pypi.python.org/pypi/tkRAD/1.6.5