Attachment 'HippoCanvasExample.txt'
Download 1 import hippo, gtk
2 window = hippo.CanvasWindow(gtk.WINDOW_TOPLEVEL)
3 box = hippo.CanvasBox(orientation=hippo.ORIENTATION_HORIZONTAL)
4 text = hippo.CanvasText(text="Somewhat long text", xalign=hippo.ALIGNMENT_START, size_mode=hippo.CANVAS_SIZE_ELLIPSIZE_END, font='32px')
5 image = hippo.CanvasImage(xalign=hippo.ALIGNMENT_END, yalign=hippo.ALIGNMENT_CENTER)
6 image.set_property('image-name', '/usr/share/icons/gnome/32x32/emotes/face-smile.png')
7 box.append(text)
8 box.append(image, hippo.PACK_EXPAND)
9 window.set_root(box)
10 window.set_size_request(160, 120)
11 window.show_all()
12 gtk.main()
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.