Bonjour à tous

Je suis nouveau sur le forum.
Je cherche à arreter l'application lancée par " os.systeme ".
Voila mon programme :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 
# -*- coding:Latin-1 -*-
import time
import os
 
def action1():
	os.system('firefox <a href="http://player.cheriefm.fr/V4/cheriefm/cheriefm_main_V4.html?id=cheriefm" target="_blank">http://player.cheriefm.fr/V4/cherief...ml?id=cheriefm</a>')
 
def action2():
	os._exit('firefox')
import Tkinter
root = Tkinter.Tk()
root.geometry("200x100")
root.title("Radio Web")
 
b = Tkinter.Button( root, text='Marche radio', command=action1 )
b.pack()
c = Tkinter.Button( root, text='quitter' , command=action2 )
c.pack()
 
root.mainloop()
Merci pour votre réponse.
@micalement
Chabot