def onInit(self):
'''called when the dialog is drawn'''
self.list_control = self.getControl(6)
self.getControl(1).setLabel(self.window_title)
self.getControl(3).setVisible(False)
try:
self.getControl(7).setLabel(xbmc.getLocalizedString(222))
except Exception:
pass
self.getControl(5).setVisible(False)
# add our items to the listing and focus the control
self.list_control.addItems(self.listing)
self.setFocus(self.list_control)
评论列表
文章目录