[pygtk] Resizing window and Image

Arnau Sanchez arnau at ehas.org
Mon Aug 14 06:58:09 WST 2006


Peter,

Just a look on the glade file... I think you need to allow shrink:

<property name="allow_shrink">True</property>

I didn't find that option in glade-2 (?), but it does appear in Gazpacho 0.6.6. 
Anyway, you can always edit the glade file and add it.

arnau

Peter Moberg escribió:
> Hi,
> 
> I'm writing a small application using PyGTK and glade. In the 
> application I use a Gtk.Image to display an Image, my problem is that I 
> when trying to resize the window (using the mouse), it's not possible to 
> drag it smaller than the image. I would like it to resize the image when 
> the window is resized. I've managed to get the image to resize when the 
> window is resized to a larger size.
> 
> Source code can be found here:
> http://code.google.com/p/panelswitcher/
> 
> Best Regards
> Peter Moberg
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


More information about the pygtk mailing list