未来的Python Gui?

编程入门 行业动态 更新时间:2024-10-13 06:13:20
本文介绍了未来的Python Gui?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我一直在努力找出Python的未来是什么?/ b 到Tk。似乎有几个接口使用了新的 功能,包括Tile等功能。和Ttk。 如果我想编写一个将在未来的标准Python 发行版下运行的程序,我应该使用什么扩展模块今天用 工作? 谢谢! - Brian

I''ve been trying to find out what the future of Python is with regard to Tk. It seems there are several interfaces that make use of new functionality, including "Tile" and "Ttk". If I want to write a program that will run under the standard Python distribution of the future, what extension module should I work with today? Thanks! -- Brian

推荐答案

4月17日9:28 pm,bcwh ... @ pobox < bcwh ... @ poboxwrote: On Apr 17, 9:28 pm, "bcwh...@pobox" <bcwh...@poboxwrote: 我一直试图找出Python的未来是什么 到Tk。似乎有几个接口使用了新的 功能,包括Tile等功能。和Ttk。 如果我想编写一个将在未来的标准Python 发行版下运行的程序,我应该使用什么扩展模块今天使用 ? I''ve been trying to find out what the future of Python is with regard to Tk. It seems there are several interfaces that make use of new functionality, including "Tile" and "Ttk". If I want to write a program that will run under the standard Python distribution of the future, what extension module should I work with today?

本月我一直在做很多阅读。 目前,没有一个工具包可用让我感觉自己处于成为下一个tkinter的位置,看起来像核心python 开发正在逐渐远离可能是$ b的扩展$ b更好地由其他方产生。每个人和他们的堂兄 对如何构建GUI有不同的想法,包括如何挂钩到其他服务。跨平台,似乎 wxPython比jython + SWT或Swing有相当大的优势。 但是特定于平台的框架也非常重要。 我会说最好的办法是学习swig和类似的桥接,扩展和嵌入机制。 Python GUI编程是可能涉及到/或 python挂钩到像Cocoa,Qt或 wxWidgets这样的框架,嵌入在框架中的python 像Java或.NET,或者在我们的应用程序中使用作为域特定语言,例如 emacs,vim和OpenOffice。

I''ve been doing a lot of reading this month. At the moment, none of the toolkits available strike me as being in a position to become the next tkinter, and it seems like core python development is moving away from extensions that might be better produced by other parties. Everyone and their cousin have different ideas about how a GUI should be built including how it hooks into other services. Cross-platform, it seems like wxPython has a considerable edge over jython+SWT or Swing. But platform-specific frameworks are also pretty important. I''d say that the best bet is to learn swig and similar bridging, expanding, and embedding mechanisms. Python GUI programming is likely to involve either python hooking into frameworks like Cocoa, Qt, or wxWidgets, python embedded in frameworks like Java or .NET, or flavors of python used as domain-specific languages in applications such as emacs, vim, and OpenOffice.

谢谢! - Brian Thanks! -- Brian

kirkjobsluder写道: kirkjobsluder wrote: 我会说最好的选择是学习swig和类似的b / b 桥接,扩展和嵌入机制。 I''d say that the best bet is to learn swig and similar bridging, expanding, and embedding mechanisms.

对于GUI编程,这似乎有点矫枉过正。选择一个GUI工具包,它几乎可以保证包含在Python中使用。 Richard

For GUI programming this would seem overkill. Pick a GUI toolkit and it''s almost guaranteed to be wrapped for use in Python already. Richard

4月18日凌晨2:07,Richard Jones< richardjo ... @ optushome.au> 写道: On Apr 18, 2:07 am, Richard Jones <richardjo...@optushome.au> wrote: kirkjobsluder写道: kirkjobsluder wrote: 我会说最好的选择是学习swig和类似的 桥接,扩展和嵌入机制。 I''d say that the best bet is to learn swig and similar bridging, expanding, and embedding mechanisms.

对于GUI编程,这似乎有点矫枉过正。选择一个GUI工具包,它几乎可以保证包含在Python中使用的。

For GUI programming this would seem overkill. Pick a GUI toolkit and it''s almost guaranteed to be wrapped for use in Python already.

也许有点。我并不是说每个人都应该自己包装 代码, 但是现有的许多包装纸都很薄,并且 理解 如何使用和调试包装的GUI代码可能会让人更好地了解特定的工具包。 了解特定的工具包。

Perhaps a bit. I''m not saying that everyone should wrap their own code, but many of the currently existing wrappers are quite thin, and understanding how to use and debug wrapped GUI code might put one in a better position over knowing a particular toolkit.

> Richard > Richard

更多推荐

未来的Python Gui?

本文发布于:2023-11-25 02:28:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1627953.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:未来   Python   Gui

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!