I think maximization is one state of a widget. When we talking about resizing the widget it should be in a normal state. there's a signal " window-state-event", you can track maximization via that signal , maybe you should unmaximize the widge firstly .
2013/1/20 <pygtk-requ...@daa.com.au> > Send pygtk mailing list submissions to > pygtk@daa.com.au > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.daa.com.au/mailman/listinfo/pygtk > or, via email, send a message with subject or body 'help' to > pygtk-requ...@daa.com.au > > You can reach the person managing the list at > pygtk-ow...@daa.com.au > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of pygtk digest..." > > > Today's Topics: > > 1. Problem with "gtk.Window().maximize()" (Ajay Garg) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 19 Jan 2013 12:51:54 +0530 > From: Ajay Garg <ajaygargn...@gmail.com> > To: pygtk@daa.com.au > Subject: [pygtk] Problem with "gtk.Window().maximize()" > Message-ID: > <CAHP4M8U8pWwAQMpnk3hS=SHic= > julv+p0ienxhmtexnnadp...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > 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-0001.html > > > > ------------------------------ > > _______________________________________________ > pygtk mailing list pygtk@daa.com.au > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ > > > End of pygtk Digest, Vol 119, Issue 7 > ************************************* >
_______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/