Resize Python Window

Using Python + PyGTK. Is there a way to check for events / events to resize a window? If so, what is the easiest way to implement and use this signal.

+4
source share
1 answer

a gtk.Window also gtk.Container , so it responds to a check-resize signal.

Here's a minimal code example:

 import gtk def changed(window): print 'I have resized.' w = gtk.Window() w.connect('check-resize', changed) w.show() gtk.main() 
+8
source

All Articles