Portál AbcLinuxu, 9. května 2025 06:29
Řešení dotazu:
emerge dev-python/libwnck-python
a pak uz to jde snadno
#!/usr/bin/python -u
import wnck, gtk
s = wnck.screen_get_default()
while gtk.events_pending():
gtk.main_iteration()
for w in s.get_windows():
print '%x %d %s' %(w.get_xid(), w.get_pid(),w.get_name())
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.