本文整理汇总了Python中Components.Label.Label.visible方法的典型用法代码示例。如果您正苦于以下问题:Python Label.visible方法的具体用法?Python Label.visible怎么用?Python Label.visible使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Components.Label.Label
的用法示例。
在下文中一共展示了Label.visible方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from Components.Label import Label [as 别名]
# 或者: from Components.Label.Label import visible [as 别名]
def __init__(self, session, cmd):
self.skin = """
<screen position="80,70" size="e-160,e-110" title="">
<widget name="list" position="0,0" size="e-0,e-0" scrollbarMode="showOnDemand" transparent="1" zPosition="2"/>
<widget name="thumbnail" position="0,0" size="150,150" alphatest="on" />
<widget name="chosenletter" position="10,10" size="e-20,150" halign="center" font="Regular;30" foregroundColor="#FFFF00" />
</screen>"""
self.session = session
Screen.__init__(self, session)
self["thumbnail"] = Pixmap()
self["thumbnail"].hide()
self.cbTimer = eTimer()
self.cbTimer.callback.append(self.timerCallback)
self.Details = {}
self.pixmaps_to_load = []
self.picloads = {}
self.color = "#33000000"
self.numericalTextInput = NumericalTextInput.NumericalTextInput(mapping=NumericalTextInput.MAP_SEARCH_UPCASE)
self["chosenletter"] = Label("")
self["chosenletter"].visible = False
self.page = 0
self.numOfPics = 0
self.isRtl = False
self.isRtlBack = False
self.isSbs = False
self.channel = ''
self.level = self.UG_LEVEL_ALL
self.cmd = cmd
self.timerCmd = self.TIMER_CMD_START
self.png = LoadPixmap(resolveFilename(SCOPE_PLUGINS, "Extensions/OpenUitzendingGemist/oe-alliance.png"))
self.tmplist = []
self.mediaList = []
self.imagedir = "/tmp/openUgImg/"
if (os_path.exists(self.imagedir) != True):
os_mkdir(self.imagedir)
self["list"] = MPanelList(list = self.tmplist, selection = 0)
self.list = self["list"]
self.updateMenu()
self["actions"] = ActionMap(["WizardActions", "MovieSelectionActions", "DirectionActions"],
{
"up": self.key_up,
"down": self.key_down,
"left": self.key_left,
"right": self.key_right,
"ok": self.go,
"back": self.Exit,
}
, -1)
self["NumberActions"] = NumberActionMap(["NumberActions", "InputAsciiActions"],
{
"gotAsciiCode": self.keyAsciiCode,
"0": self.keyNumberGlobal,
"1": self.keyNumberGlobal,
"2": self.keyNumberGlobal,
"3": self.keyNumberGlobal,
"4": self.keyNumberGlobal,
"5": self.keyNumberGlobal,
"6": self.keyNumberGlobal,
"7": self.keyNumberGlobal,
"8": self.keyNumberGlobal,
"9": self.keyNumberGlobal
})
self.onLayoutFinish.append(self.layoutFinished)
self.cbTimer.start(10)