All pastes #376042 Raw Edit

aVirulence

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

class QuodLibetPlugin:
	def __init__(self):
		gobject.idle_add(self.run)		
		gtk.main()



	def run(self):
		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
		gtk.main_quit()
		
test = QuodLibetPlugin()