[pygtk] Adding a custom widget to vbox.

2006-01-03 Thread Pupeno
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 <[EMAIL PROTECTED]> (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


pgpBhIHlgwAI2.pgp
Description: PGP signature
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] expander packing issue

2006-01-03 Thread Alex Roitman
On Tue, 2005-12-27 at 09:22 -0800, B C wrote:
> 
> Adding d.set_resizable(False) will cause the window to
> shrink when the expander is collapsed.

Thanks! That's exactly what we've been looking for!
Alex

-- 
Alexander Roitman   http://www.gramps-project.org


signature.asc
Description: This is a digitally signed message part
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/