本文整理匯總了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')