All pastes #376070 Raw Edit

aVirulence

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


class QuodLibet():	
	def __init(self):
		
		gobject.idle_add(run)
		gtk.main()

	
	def run(self):
		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

test = QuodLibet()