简体   繁体   English

PyFace,TraitsUI和TraitsGUI

[英]PyFace, TraitsUI and TraitsGUI

I was just reading about PyFace, TraitsUI and TraitsGUI but I have problems to understand the difference between those projects. 我刚刚阅读有关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. pyface项目包含一个独立于工具包的GUI抽象层,用于支持Traits包的“可视化”功能。

The traitsui project contains a toolkit-independent GUI abstraction layer, which is used to support the "visualization" features of the Traits package. traitsui项目包含一个独立于工具包的GUI抽象层,用于支持Traits包的“可视化”功能。

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. TraitsGUI项目包含一个独立于工具包的GUI抽象层(称为Pyface),用于支持Traits包的“可视化”功能。

TraitsGUI is an older name for TraitsUI. TraitsGUI是TraitsUI的旧名称。 The name TraitsGUI is deprecated now: the github repo is there for legacy compatibility. 现在不推荐使用TraitsGUI这个名称:github repo用于传统兼容性。 TraitsUI is the main interface for building UI's using Traits. TraitsUI是使用Traits构建UI的主要界面。

Pyface should be largely out of sight for most TraitsUI users, providing an abstraction layer between the OS UI and Python. 对于大多数TraitsUI用户来说,Pyface应该基本上不可见,在OS UI和Python之间提供了一个抽象层。

If you're interested in developing UI's, you should definitely take a look at Enaml , a constraints-based markup language for GUI building in Python. 如果您对开发UI感兴趣,那么您一定要看看Enaml ,这是一种基于约束的标记语言,用于Python中的GUI构建。 If you've pushed very far into TraitsUI, you may have bumped into some frustrations with getting things laid out the way you want. 如果你已经深入TraitsUI,你可能会遇到一些令人沮丧的事情,让你按照自己想要的方式布置。 Enaml allows a lot of really cool layout with a very gentle learning curve. Enaml允许很多非常酷的布局,具有非常温和的学习曲线。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM