class ScrollLabel(HTMLComponent, GUIComponent):
def __init__(self, text=""):
class ScrollLabel(HTMLComponent, GUIComponent):
def __init__(self, text=""):
- skin.applyAllAttributes(self.long_text, desktop, self.skinAttributes)
+ ret = False
+ if self.skinAttributes is not None:
+ skin.applyAllAttributes(self.long_text, desktop, self.skinAttributes)
+ ret = True
s = self.long_text.size()
self.instance.move(self.long_text.position())
lineheight=fontRenderClass.getInstance().getLineHeight( self.long_text.getFont() )
s = self.long_text.size()
self.instance.move(self.long_text.position())
lineheight=fontRenderClass.getInstance().getLineHeight( self.long_text.getFont() )
self.long_text.move(ePoint(0,0))
self.long_text.resize(eSize(s.width()-30, self.pageHeight*16))
self.setText(self.message)
self.long_text.move(ePoint(0,0))
self.long_text.resize(eSize(s.width()-30, self.pageHeight*16))
self.setText(self.message)
self.long_text.move(ePoint(0,0))
self.long_text.setText(self.message)
text_height=self.long_text.calculateSize().height()
self.long_text.move(ePoint(0,0))
self.long_text.setText(self.message)
text_height=self.long_text.calculateSize().height()