[pygtk] Problem with "gtk.Window().maximize()"

Ajay Garg ajaygargnsit at gmail.com
Sat Jan 19 15:21:54 WST 2013


Hi all.

If a gtk.Window has been maximized, it seems that the "resize()" method
doesn't take effect thereafter.
I will illustrate with the following code snippets ::



a)
###################################################################
import gtk
import gobject

win = gtk.Window()
win.show()

win.resize(683, 346)

gobject.MainLoop().run()
###################################################################


When the above snippet is run, the window is resized as expected.






b)
###################################################################
import gtk
import gobject

win = gtk.Window()
win.show()

win.maximize()   ### Culprit line :-(

win.resize(683, 346)

gobject.MainLoop().run()
###################################################################



Here, once the window is maximized, the resize() stops working :-(




Is it expected? Is it a bug?
Is there anyway I can get the window to resize, AFTER calling
window.maximize() ?


Will be grateful for any pointers :)


Regards,
Ajay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20130119/48e842ea/attachment.html>


More information about the pygtk mailing list