[pygtk] how to show multiple window from gtk.windowgroup
John Stowers
john.stowers.lists at gmail.com
Fri Dec 4 18:26:14 WST 2009
On Fri, 2009-12-04 at 18:19 +0800, engine spot wrote:
> Hello John
> I am learning pygtk,and I fount that if window is an object
> ,WindowGroup should be an object Controller,but for WindowGroup ,there
> are only two method(function) add_window,remove_window,but how to get
> window from it ?we can add window to it ,but we can not get it ,how to
> do with WindowGroup?
I do not understand what you mean here.
My suggestion is to not use WindowGroup unless you need to modify how
grabs are handled among top level windows (and I suspect you do not need
this).
If you want to group windows for design reasons (and not to play with
their modality), then just write your own controller
class FooWindowGroup:
def __init__(self, *windows):
self._windows = windows
def bar(self):
for w in self._windows:
w.bar()
John
More information about the pygtk
mailing list