PyFace、TraitsUI和TraitsGUI

2024-09-30 16:26:32 发布

您现在位置:Python中文网/ 问答频道 /正文

我刚读过PyFace、TraitsUI和TraitsGUI,但我很难理解这些项目之间的区别。在

The pyface project contains a toolkit-independent GUI abstraction layer, which is used to support the "visualization" features of the Traits package.

The traitsui project contains a toolkit-independent GUI abstraction layer, which is used to support the "visualization" features of the Traits package.

The TraitsGUI project contains a toolkit-independent GUI abstraction layer (known as Pyface), which is used to support the "visualization" features of the Traits package.


Tags: thetogithubprojectlayerwhichisgui
1条回答
网友
1楼 · 发布于 2024-09-30 16:26:32

TraitsGUI是TraitsUI的老名字。TraitsGUI这个名称现在已被弃用:github repo是为了保持原有的兼容性。TraitsUI是使用TraitsUI构建UI的主界面。在

对于大多数TraitsUI用户来说,Pyface在很大程度上应该是看不见的,它在OS UI和Python之间提供了一个抽象层。在

如果您对开发UI感兴趣,那么一定要看看Enaml,这是一种基于约束的标记语言,用于在Python中构建GUI。如果你在TraitsUI已经走得很远了,那么你可能会在按照你想要的方式安排事情时遇到一些挫折。Enaml允许很多非常酷的布局和非常温和的学习曲线。在

相关问题 更多 >