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.
  • [get | view] (2021-02-25 09:46:11, 450.6 KB) [[attachment:GUADEC-Presentation.odp]]
  • [get | view] (2021-02-25 09:46:11, 0.6 KB) [[attachment:HippoCanvasExample.txt]]
  • [get | view] (2021-02-25 09:46:11, 0.5 KB) [[attachment:TwitterStock_Version1.py]]
  • [get | view] (2021-02-25 09:46:11, 3.9 KB) [[attachment:TwitterStock_Version2.py]]
  • [get | view] (2021-02-25 09:46:11, 0.4 KB) [[attachment:TwitterStock_Version3.py]]
  • [get | view] (2021-02-25 09:46:11, 0.9 KB) [[attachment:TwitterStock_Version4.py]]
  • [get | view] (2021-02-25 09:46:11, 3.1 KB) [[attachment:TwitterStock_Version5.py]]
  • [get | view] (2021-02-25 09:46:11, 2.4 KB) [[attachment:TwitterStock_Version6.py]]
  • [get | view] (2021-02-25 09:46:11, 14.1 KB) [[attachment:TwitterStock_Version7.py]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.