Using Python + PyGTK. Is there a signal/event way of checking for a window resize? If so then what is the easiest way of implementing and using this signal.
+1
A:
a gtk.Window
is also a gtk.Container
, so it answers to the check-resize
signal.
Here's minimal sample code:
import gtk
def changed(window):
print 'I have resized.'
w = gtk.Window()
w.connect('check-resize', changed)
w.show()
gtk.main()
nosklo
2010-07-31 23:14:16
Wow I feel stupid now thanks
Anon
2010-08-01 01:37:56