All pastes #376056 Raw Edit

Anonymous

public text v1 · immutable
#376056 ·published 2007-02-28 20:30 UTC
rendered paste body
import wnck
import gobject
import gtk

def run():
	screen = wnck.screen_get_default()
	while gtk.events_pending(): gtk.main_iteration()
	windowlist = screen.get_windows()
	names = []		
	for window in windowlist:
		names.append(window.get_name())
		
	for name in names:
		print name

gobject.idle_add(run)
gtk.main()