Sorry for my bad english.
Here's my code :
def key(event):
instance = 'Instance'
touche = event.char
instance = multiprocessing.Process(target=player, args=(hitkey,))
instance.start()
def player(hitkey):
winsound.PlaySound(hitkey + '.wav',
winsound.SND_FILENAME|winsound.SND_NOWAIT|winsound.SND_ASYNC)
'key' is the tkinter function wich gets the pressed key.
'player' is the function playing a specific wav file depending on wich key is
pressed, that's why its argument is 'hitkey'. It uses the winsound module.
What spawns new windows is theorically the multiprocessing line of code, even
if it's inside the 'key' function.
--
http://mail.python.org/mailman/listinfo/python-list