本文整理汇总了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
示例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
示例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')
示例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')