Python是否具有使用本机窗口小部件的跨平台GUI工具包? [英] Does Python have a cross-platform GUI toolkit that uses native widgets?
问题描述
Python有许多GUI工具包.如果我理解正确,这些工具包通常负责呈现自己的窗口小部件(而不是依赖于操作系统).这样就获得了跨平台的支持,但其代价是使窗口小部件的外观,感觉和行为不一定像其本机窗口小部件那样. Python是否具有跨平台 的GUI工具包,并且可以利用每个系统的本机窗口小部件?
Python has many GUI toolkits. If I understand correctly, these toolkits typically take on the responsibility of rendering their own widgets (rather than relying on the operating system). This achieves cross-platform support at the cost of having widgets that don't necessarily look, feel and behave exactly like their native counterparts. Does Python have a GUI toolkit that is cross-platform and takes advantage of each system's native widgets?
根据 Python中的GUI编程,至少有两个候选:
According to GUI Programming in Python, there are at least two candidates:
不幸的是,这个图书馆似乎已经消失了.现在,它的链接重定向到 Icy Labs ,该公司为电子产品设计和分销组件和设备和机器人技术的发展"(???).
Unfortunately, this library seems to have disappeared. It's link now redirects to Icy Labs, a company that "designs and distributes components and devices for electronics and robotics development" (???).
这是 SWT Java库的端口(我已经很熟悉).该库不像Python那样具有感觉(例如,它保留了Java中常见的set*
和get*
方法).因此,我很想知道是否有更权威的图书馆可以满足我的需求.
This is a port of the SWT library for Java (which I am already familiar with). This library doesn't feel like Python (for example, it retains the set*
and get*
methods that are common in Java). Therefore, I am curious to know if there is a more authoritative library that meets my needs.
推荐答案
wxWidgets是一个选项吗?据我所知,它可以与操作系统提供的任何功能集成在一起-Windows上的Win32,Linux上的gtk以及OSX上的Aqua.
Is wxWidgets an option? As far as I know, it integrates with whatever the OS has to offer - win32 on windows, gtk on Linux and, I think, Aqua on OSX.
这篇关于Python是否具有使用本机窗口小部件的跨平台GUI工具包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!