本文整理汇总了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)
示例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)