All pastes #376047 Raw Edit

aVirulence

public text v1 · immutable
#376047 ·published 2007-02-28 20:23 UTC
rendered paste body

import wnck
import gobject
import gtk

def run():
	screen = wnck.screen_get_default()
	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()