Traits——安装/第一个界面

pip install -i http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com/simple traits
pip install -i http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com/simple trautsui


from traits.api import HasTraits, Str, Int
class ModelManager(HasTraits):
    model_name = Str
    category = Str
    model_file = Str
    model_number = Str
model = ModelManager()
model.configure_traits()

效果图

原文地址:https://www.cnblogs.com/shunguo/p/14552164.html