当前位置: 首页>>代码示例>>Python>>正文


Python Plasma.ptBook方法代码示例

本文整理汇总了Python中Plasma.ptBook方法的典型用法代码示例。如果您正苦于以下问题:Python Plasma.ptBook方法的具体用法?Python Plasma.ptBook怎么用?Python Plasma.ptBook使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Plasma的用法示例。


在下文中一共展示了Plasma.ptBook方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: DisplayLinkingBook

# 需要导入模块: import Plasma [as 别名]
# 或者: from Plasma import ptBook [as 别名]
def DisplayLinkingBook(agename, spawnpoint):
    #self.showFlybys = showFlyby
    #self.curBookAge = None
    #self.curBookSpawnpoint = None
    #contents = ''
    #if (cover != None):
    #    contents = (((contents + '<cover src="') + cover) + '">')
    #if self.isAgeInstalled(agename):
    #    self.curBookAge = agename
    #    self.curBookSpawnpoint = self.getSpawnpoint(agename)
    #if ((self.curBookAge == None) or ((self.curBookSpawnpoint == None) or ((self.curBookAge == '') or (self.curBookSpawnpoint == '')))):
    #    self.curBookAge = None
    #    self.curBookSpawnpoint = None
    #    contents = (contents + '<font size=28 face=Uru ><p align=center >This Age is not installed.\n\n')
    #    if showText:
    #        contents = (((contents + self.getDescription(agename)) + '\n\n<font size=24 face=Uru>') + self.getText(agename))
    #    if (linkingImage != None):
    #        contents = (((contents + '<pb><img src="') + linkingImage) + '" align=center blend=alpha >')
    #    else:
    #        contents = (contents + '<pb><img src="xLinkPanelBlackVoid*1#0.hsm" align=center blend=alpha >')
    #else:
    #    contents = (contents + '<font size=28 face=Uru ><p align=center >')
    #    if showText:
    #        contents = (((contents + self.getDescription(agename)) + '\n\n<font size=24 face=Uru>') + self.getText(agename))
    #    if (linkingImage != None):
    #        contents = (((contents + '<pb><img src="') + linkingImage) + '" align=center link=100 blend=alpha >')
    #    else:
    #        contents = (contents + '<pb><img src="xLinkPanelBlackVoid*1#0.hsm" align=center link=100 blend=alpha >')
    #self.output('Dustin: UAM: ', contents)
    #self.callersKey = keyToUse
    
    global _book
    global _agename
    global _spawnpoint
    global _islinkbook
    _islinkbook = True
    #global _isourbook
    _agename = agename
    _spawnpoint = spawnpoint
    contents = '<pb><img src="xLinkPanelBlackVoid*1#0.hsm" align=center link=100 blend=alpha >'
    #bookobj = _AgeBook(agename,spawnpoint)
    #_book = Plasma.ptBook(contents, self.callersKey)
    _book = Plasma.ptBook(contents, _ki.key)
    _book.setSize(1.0, 1.0)
    _book.setGUI('BkBook')
    _book.allowPageTurning(True)
    #if (cover == None):
    #    self.book.show(1)
    #else:
    #    self.book.show(0)
    #_isourbook = True
    _book.show(1)
开发者ID:Jrius,项目名称:Drizzle,代码行数:54,代码来源:uam.py

示例2: _DisplayBook

# 需要导入模块: import Plasma [as 别名]
# 或者: from Plasma import ptBook [as 别名]
def _DisplayBook(text, isOpen, booktype):
    #cover can be None(detect if theres a cover), True, or False
    #booktype can be bkNotebook, bkBook, or bkBahroRockBook
    global _book
    #global _isourbook
    _book = Plasma.ptBook(text, _ki.key)
    #if cover==None:
    #    cover = text.find('<cover') >= 0  #showOpen if cover not found
    _book.setSize(1.0, 1.0)
    _book.setGUI(booktype)
    _book.allowPageTurning(True)
    #_isourbook = True
    #_book.show(not cover)
    _book.show(isOpen)
开发者ID:Jrius,项目名称:Drizzle,代码行数:16,代码来源:uam.py


注:本文中的Plasma.ptBook方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。