本文整理汇总了Python中skin.readSkin函数的典型用法代码示例。如果您正苦于以下问题:Python readSkin函数的具体用法?Python readSkin怎么用?Python readSkin使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了readSkin函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: doInstantiateDialog
def doInstantiateDialog(self, screen, arguments, kwargs, desktop):
# create dialog
try:
dlg = self.create(screen, arguments, **kwargs)
except:
print 'EXCEPTION IN DIALOG INIT CODE, ABORTING:'
print '-'*60
print_exc(file=stdout)
print "[mytest.py] quitMainloop #2"
enigma.quitMainloop(5)
print '-'*60
if dlg is None:
return
# read skin data
readSkin(dlg, None, dlg.skinName, desktop)
# create GUI view of this dialog
assert desktop is not None
dlg.setDesktop(desktop)
dlg.applySkin()
return dlg
开发者ID:dbhrscom,项目名称:enigma2,代码行数:26,代码来源:mytest.py
示例2: doInstantiateDialog
def doInstantiateDialog(self, screen, arguments, kwargs, desktop):
# create dialog
z = None
if "zPosition" in kwargs:
z = kwargs["zPosition"]
del kwargs["zPosition"]
try:
dlg = self.create(screen, arguments, **kwargs)
except Exception as e:
print 'EXCEPTION IN DIALOG INIT CODE, ABORTING:'
print '-'*60
print_exc(file=stdout)
if isinstance(e, SkinError):
print "SKIN ERROR", e
print "defaulting to standard skin..."
config.skin.primary_skin.value = "skin.xml"
config.skin.primary_skin.save()
configfile.save()
quitMainloop(5)
print '-'*60
if dlg is None:
return
# read skin data
readSkin(dlg, None, dlg.skinName, desktop)
# create GUI view of this dialog
assert desktop is not None
if z != None:
dlg.setZPosition(z)
dlg.setDesktop(desktop)
dlg.applySkin()
return dlg
开发者ID:OpenDMM,项目名称:enigma2,代码行数:35,代码来源:mytest.py
示例3: doInstantiateDialog
def doInstantiateDialog(self, screen, arguments, kwargs, desktop):
# create dialog
z = None
if "zPosition" in kwargs:
z = kwargs["zPosition"]
del kwargs["zPosition"]
try:
dlg = self.create(screen, arguments, **kwargs)
except:
print 'EXCEPTION IN DIALOG INIT CODE, ABORTING:'
print '-'*60
print_exc(file=stdout)
quitMainloop(5)
print '-'*60
if dlg is None:
return
# read skin data
readSkin(dlg, None, dlg.skinName, desktop)
# create GUI view of this dialog
assert desktop is not None
dlg.setZPosition(z)
dlg.setDesktop(desktop)
dlg.applySkin()
return dlg
开发者ID:popazerty,项目名称:12,代码行数:29,代码来源:mytest.py
示例4: doInstantiateDialog
def doInstantiateDialog(self, screen, arguments, kwargs, desktop):
# create dialog
dlg = screen(self, *arguments, **kwargs)
if dlg is None:
return
# read skin data
readSkin(dlg, None, dlg.skinName, desktop)
# create GUI view of this dialog
dlg.setDesktop(desktop)
dlg.applySkin()
return dlg
开发者ID:Huevos,项目名称:enigma2,代码行数:11,代码来源:mytest.py
注:本文中的skin.readSkin函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论