本文整理汇总了Python中dtk.ui.treeview.TreeView.set_index_text方法的典型用法代码示例。如果您正苦于以下问题:Python TreeView.set_index_text方法的具体用法?Python TreeView.set_index_text怎么用?Python TreeView.set_index_text使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dtk.ui.treeview.TreeView
的用法示例。
在下文中一共展示了TreeView.set_index_text方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: TreeViewItem
# 需要导入模块: from dtk.ui.treeview import TreeView [as 别名]
# 或者: from dtk.ui.treeview.TreeView import set_index_text [as 别名]
wuhan_node = tree_view.add_item(None, TreeViewItem("Linux Deepin"))
wuhan_dev_node = tree_view.add_item(wuhan_node, TreeViewItem("test1"))
wuhan_des_node = tree_view.add_item(wuhan_node, TreeViewItem("test2"))
wuhan_sys_node = tree_view.add_item(wuhan_node, TreeViewItem("test3"))
tree_view.add_item(wuhan_dev_node, TreeViewItem("Deepin Music Player"))
tree_view.add_item(wuhan_dev_node, TreeViewItem("Deepin Media Player"))
tree_view.add_item(wuhan_dev_node, TreeViewItem("Deepin Software Center"))
tree_view.add_item(wuhan_sys_node, TreeViewItem("Deepin Talk"))
tree_view.add_item(wuhan_sys_node, TreeViewItem("Deepin IM"))
tree_view.add_item(wuhan_sys_node, TreeViewItem("Deepin Reader"))
tree_view.add_item(wuhan_des_node, TreeViewItem("ZHL"))
tree_view.add_item(wuhan_des_node, TreeViewItem("ZHL"))
tree_view.add_item(wuhan_des_node, TreeViewItem("zhm"))
beijing_node = tree_view.add_item(None, TreeViewItem("深度 Linux"))
tree_view.add_items(beijing_node, [TreeViewItem(name) for name in ("开发部", "设计部", "系统部")])
tree_view.set_index_text(1, "深度测试改名")
# text_view = TextView("this is line one\nline break is awesome\nblahblahlooooooooooooooooooooooooooooooooooooooooooooooooooooooooog")
# sw = ScrolledWindow()
# text_viewport = gtk.Viewport()
# text_viewport.add(text_view)
# sw.add(text_viewport)
# tab_5_box.pack_start(sw, True, True)
# Run.
application.run()