def aplay_func(btn):
    btn.set_sensitive(True)
print('init')
playProcess = subprocess.Popen('aplay tara.wav>/dev/null 2>&1', shell=True)
print('aaa')
playProcess.wait()
print('bbb')
btn.set_sensitive(False)
wTree = gtk.glade.XML('localize.glade')
window = wTree.get_widget('window1')
btn1 = wTree.get_widget('button1')
window.connect('delete_event', lambda wid, we: gtk.main_quit())
btn1.connect('clicked', aplay_func)
window.show_all()
gtk.main()
Активация и отключение кнопки после процесса в python и pyGTK