def set_list_control(self):
'''select correct list (3=small, 6=big with icons)'''
# set list id 6 if available for rich dialog
if self.richlayout:
self.list_control = self.getControl(6)
self.getControl(3).setVisible(False)
else:
self.list_control = self.getControl(3)
self.getControl(6).setVisible(False)
self.list_control.setEnabled(True)
self.list_control.setVisible(True)
# enable cancel button
self.set_cancel_button()
# show get more button
if self.getmorebutton:
util.debug("[SC] dialog 1")
self.getControl(5).setVisible(True)
self.getControl(5).setLabel(xbmc.getLocalizedString(21452))
elif not self.multiselect:
util.debug("[SC] dialog 2")
self.getControl(5).setLabel(xbmc.getLocalizedString(186))
self.getControl(5).setVisible(True)
else:
util.debug("[SC] dialog 3")
self.getControl(5).setVisible(True)
self.getControl(5).setEnabled(True)
dialogselect.py 文件源码
python
阅读 17
收藏 0
点赞 0
评论 0
评论列表
文章目录