[pygtk] Check if a window is maximized
Luis Felipe Lopez Acevedo
sirgazil at gmail.com
Thu Apr 30 00:35:30 WST 2009
El mié, 29-04-2009 a las 18:22 +0200, Johannes Bauer escribió:
> Hello list,
>
> is it possible to check if a gtk.Window is maximized or not? All I found
> was http://www.mail-archive.com/gtkmm-list@gnome.org/msg10253.html which
> suggests to extract the state from the underlying gtk.gdk.Window. I
> tried to extract the gtk.gdk.Window by using wnd.frame, but that always
> returns None - wnd.state always returns 0.
>
> Is that possible?
>
Hello, Johannes.
Try reading the following:
http://www.pygtk.org/docs/pygtk/class-gtkwindow.html#method-gtkwindow--maximize
It says:
"You can track maximization via the gtk.Widget 'window-state-event'
signal"
Hope that helps,
--
Luis Felipe López Acevedo
Medellín, Colombia
More information about the pygtk
mailing list