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()

效果图

 

posted @ 2021-03-17 21:51  朵朵奇fa  阅读(94)  评论(0编辑  收藏  举报