Close other window via pyxfce
guinan at bluebutton.com
Thu Aug 7 21:11:50 CEST 2008
I'm running gentoo, with,
I wanted to search for and close a window from a script, and
pyxfce looked like a nice easy way to do this.
I run "thunar /tmp" from the shell, and I get a Thunar window with
title "tmp - File Manager".
Then I try the following,
s = xfce4.netk.screen_get_default()
for w in s.get_windows():
But it doesn't close the window like I would expect. .minimize(),
which is commented out above, *does* work, though, so I think
I have a handle on the right object.
Is there something else I need to do to get the window to close?
More information about the Xfce4-dev