Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Python 2.7 中使用 Tix 模块创建了一个清单。该代码取自Sample Code。当我运行代码时,列表被打开。我想要的是在程序启动时关闭列表(树),并且只有当用户单击列表中父级旁边的“+”号时,才会打开列表。
我找到了一个已经包含在模块中的方法Tix.Checklist.close(entrypath) 。