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


Python KListViewItem.clientid方法代码示例

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


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

示例1: refreshlistView

# 需要导入模块: from kdeui import KListViewItem [as 别名]
# 或者: from kdeui.KListViewItem import clientid [as 别名]
 def refreshlistView(self):
     self.listView.clear()
     clients = KListViewItem(self.listView, 'clients')
     rows = self.db.mcursor.select(fields=['clientid', 'client'], table='clients')
     for row in rows:
         c = KListViewItem(clients, row['client'])
         c.clientid = row.clientid
开发者ID:BackupTheBerlios,项目名称:konsultant-svn,代码行数:9,代码来源:main.py

示例2: initlistView

# 需要导入模块: from kdeui import KListViewItem [as 别名]
# 或者: from kdeui.KListViewItem import clientid [as 别名]
 def initlistView(self):
     self.listView.addColumn('client')
     self.listView.setRootIsDecorated(True)
     clients = KListViewItem(self.listView, 'clients')
     rows = self.db.mcursor.select(fields=['clientid', 'client'], table='clients')
     for row in rows:
         c = KListViewItem(clients, row['client'])
         c.clientid = row.clientid
开发者ID:BackupTheBerlios,项目名称:konsultant-svn,代码行数:10,代码来源:clientmanager.py

示例3: refreshlistView

# 需要导入模块: from kdeui import KListViewItem [as 别名]
# 或者: from kdeui.KListViewItem import clientid [as 别名]
 def refreshlistView(self):
     self.listView.clear()
     all = KListViewItem(self.listView, 'all')
     client = KListViewItem(self.listView, 'client')
     rows = self.db.select(fields=['clientid', 'client'], table='clients')
     for row in rows:
         c = KListViewItem(client, row.client)
         c.clientid = row.clientid
     unassigned = KListViewItem(self.listView, 'unassigned')
开发者ID:BackupTheBerlios,项目名称:konsultant-svn,代码行数:11,代码来源:main.py

示例4: refreshlistView

# 需要导入模块: from kdeui import KListViewItem [as 别名]
# 或者: from kdeui.KListViewItem import clientid [as 别名]
 def refreshlistView(self):
     self.listView.clear()
     all = KListViewItem(self.listView, 'all')
     status = KListViewItem(self.listView, 'status')
     rows = self.db.select(table='trouble_status')
     for row in rows:
         s = KListViewItem(status, row.status)
         s.status = row.status
     client = KListViewItem(self.listView, 'client')
     sel = self.db.stmt.select(fields=['clientid'], table='troubles',
                          clause=Neq('status', 'done'))
     clause = In('clientid', sel)
     rows = self.db.select(fields=['clientid', 'client'], table='clients',
                           clause=clause)
     for row in rows:
         c = KListViewItem(client, row.client)
         c.clientid = row.clientid
     magnet = KListViewItem(self.listView, 'magnet')
     for m in self.manager.getUsedMagnets():
         item = KListViewItem(magnet, m)
         item.magnet = m
     untouched = KListViewItem(self.listView, 'untouched')
     statreport = KListViewItem(self.listView, 'status report')
开发者ID:BackupTheBerlios,项目名称:konsultant-svn,代码行数:25,代码来源:main.py


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