[pygtk] "gtk.Window.get_size()" returns wrong dimesntions after "resize()"?
Ajay Garg
ajaygargnsit at gmail.com
Thu Jan 24 00:18:14 WST 2013
Hi all.
First I would like to paste the simplistic example, highlighting the issue :
#################################################################
import gtk
import gobject
win = gtk.Window()
win.show()
print win.get_size() # prints (200, 200)
win.resize(100, 346)
print win.get_size() # still prints (200, 200) :-(
gobject.MainLoop().run()
#################################################################
As can be seen, the "get_size()" continues printing the older dimensions,
even after a "resize()" has been done?
Is it expected? Is there a way I can get "(100, 346)" to be printed in the
second call to "print win.get_size()" ?
(note that the resizing graphical-effect takes place without any issues)
Regards,
Ajay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20130123/e8a329a6/attachment.html>
More information about the pygtk
mailing list