[pygtk] Adding a custom widget to vbox.

Pupeno pupeno at pupeno.com
Wed Jan 4 14:04:53 WST 2006


I am trying to add a widget I created "myself"[1] based on DrawableArea/Cairo 
to a vbox that was previously created (with glade) and it's not working like 
I expected.
This is how I see it from glade: 
http://pupeno.com/miscellaneous/temporary/gladeview.png/view
And this is how I see it running the application: 
http://pupeno.com/miscellaneous/temporary/runningview.png/view
The code to add the widget is:

self.score = Score.Score()
mainVBox = self.widgets.get_widget("mainVBox")
mainVBox.pack_start(self.score)
mainVBox.reorder_child(self.score, 0)
self.score.show()

any ideas ?

Thank you.
-- 
Pupeno <pupeno at pupeno.com> (http://pupeno.com)
Vendemos: Camara de fotos rusa ЗЕНИТ ET (ZENIT) con flash ФОТОН: 
http://pupeno.com/vendo/#camara

[1] It is just a renamed copy of EggClockFace from 
http://www.pygtk.org/articles/cairo-pygtk-widgets/cairo-pygtk-widgets.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20060104/0b97ca7c/attachment.pgp


More information about the pygtk mailing list