Attachment 'TwitterStock_Version1.py'
Download 1 import hippo
2 from bigboard.stock import Stock
3
4 class TwitterStock(Stock):
5 def __init__(self, *args, **kwargs):
6 Stock.__init__(self, *args, **kwargs)
7 self.__box = hippo.CanvasBox(orientation=hippo.ORIENTATION_VERTICAL)
8 hello_message = hippo.CanvasText(text="Hello Twitter",
9 size_mode=hippo.CANVAS_SIZE_WRAP_WORD)
10 self.__box.append(hello_message)
11
12 def get_content(self, size):
13 return self.__box
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.