当前位置: 首页>>代码示例>>Python>>正文


Python KListViewItem.machines方法代码示例

本文整理汇总了Python中kdeui.KListViewItem.machines方法的典型用法代码示例。如果您正苦于以下问题:Python KListViewItem.machines方法的具体用法?Python KListViewItem.machines怎么用?Python KListViewItem.machines使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在kdeui.KListViewItem的用法示例。


在下文中一共展示了KListViewItem.machines方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: refreshListView

# 需要导入模块: from kdeui import KListViewItem [as 别名]
# 或者: from kdeui.KListViewItem import machines [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
开发者ID:BackupTheBerlios,项目名称:paella-svn,代码行数:35,代码来源:main.py

示例2: refreshListView

# 需要导入模块: from kdeui import KListViewItem [as 别名]
# 或者: from kdeui.KListViewItem import machines [as 别名]
 def refreshListView(self):
     suite_folder = KListViewItem(self.listView, 'suites')
     for row in self.cursor.select(table='suites'):
         item = KListViewItem(suite_folder, row.suite)
         item.suite = row.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
     for dtype in ['trait', 'family']:
         item = KListViewItem(differ_folder, dtype)
         item.dtype = dtype
     environ_folder = KListViewItem(self.listView, 'environ')
     environ_folder.environ = True
     for etype in ['default', 'current']:
         item = KListViewItem(environ_folder, etype)
         item.etype = etype
开发者ID:BackupTheBerlios,项目名称:paella-svn,代码行数:23,代码来源:main.py


注:本文中的kdeui.KListViewItem.machines方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。