本文整理汇总了Python中kdeui.KListViewItem.clients方法的典型用法代码示例。如果您正苦于以下问题:Python KListViewItem.clients方法的具体用法?Python KListViewItem.clients怎么用?Python KListViewItem.clients使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类kdeui.KListViewItem
的用法示例。
在下文中一共展示了KListViewItem.clients方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: refreshListView
# 需要导入模块: from kdeui import KListViewItem [as 别名]
# 或者: from kdeui.KListViewItem import clients [as 别名]
def refreshListView(self):
self.listView.clear()
self._refresh_suites()
suite_folder = KListViewItem(self.listView, 'suites')
suite_folder.folder = True
for suite in self._suites:
item = KListViewItem(suite_folder, suite)
item.suite = suite
profile_folder = KListViewItem(self.listView, 'profiles')
profile_folder.profiles = True
family_folder = KListViewItem(self.listView, 'families')
family_folder.families = True
machine_folder = KListViewItem(self.listView, 'machines')
machine_folder.machines = True
differ_folder = KListViewItem(self.listView, 'differs')
differ_folder.differs = True
differ_folder.folder = True
for dtype in ['trait', 'family']:
item = KListViewItem(differ_folder, dtype)
item.dtype = dtype
environ_folder = KListViewItem(self.listView, 'environ')
environ_folder.environ = True
environ_folder.folder = True
for etype in ['default', 'current']:
item = KListViewItem(environ_folder, etype)
item.etype = etype
# installer widget is still unimplemented
if False:
installer_folder = KListViewItem(self.listView, 'installer')
installer_folder.installer = True
if self.app.cfg.getboolean('management_gui', 'client_widget'):
clients_folder = KListViewItem(self.listView, 'clients')
clients_folder.clients = True