> Dave A.
No, not a new window, but my player function doesn't play any sound anymore.
--
http://mail.python.org/mailman/listinfo/python-list
On 04/30/2013 08:22 AM, alternativ...@rocketmail.com wrote:
> Dave A.
Yeah I'm using MRAB's code, my current code is :
#Initalisation
global event
global hitkey
#Functions
def key(event):
hitkey = event.char
instance = multiprocessing.Process(target=player, args=(hitkey,))
> Dave A.
Yeah I'm using MRAB's code, my current code is :
#Initalisation
global event
global hitkey
#Functions
def key(event):
hitkey = event.char
instance = multiprocessing.Process(target=player, args=(hitkey,))
instance.start()
def player(hitkey):
winsound
On 04/29/2013 09:17 PM, alternativ...@rocketmail.com wrote:
I thought 'clause' was reffering to the 'if __name__ == "__main__":' thing in
English, but apparently not.
Well except the import and the 'globalization' of my variables, every thing is
idented.
No clue whom you think you're replyin
I thought 'clause' was reffering to the 'if __name__ == "__main__":' thing in
English, but apparently not.
Well except the import and the 'globalization' of my variables, every thing is
idented.
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Apr 30, 2013 at 4:44 AM, wrote:
> Yeah I did, but I globalized my variables, I've got only functions, and not
> methods, and my clause seems to work so I don't know why it doesn't work.
I don't know what you mean by your "clause", and I think we have a
language barrier here. (Though you
Yeah I did, but I globalized my variables, I've got only functions, and not
methods, and my clause seems to work so I don't know why it doesn't work.
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Apr 30, 2013 at 3:32 AM, wrote:
> It definetly helped, windows don't pop up anymore, but now it doesn't make
> any sound anymore. Could it be because of a local (non-global) variable ?
Did you read what I linked you to? There are rules to using
multiprocessing; more of them on Windows.
It definetly helped, windows don't pop up anymore, but now it doesn't make any
sound anymore. Could it be because of a local (non-global) variable ?
--
http://mail.python.org/mailman/listinfo/python-list
On 29/04/2013 16:31, alternativ...@rocketmail.com wrote:
My full code is :
#Import
from tkinter import *
import wave
import winsound
import multiprocessing
#Initialisation
fenetre=Tk()
frame = Frame(fenetre, width=200, height=100)
instance = 'Instance'
#Fonctions
def key(event):
insta
My full code is :
#Import
from tkinter import *
import wave
import winsound
import multiprocessing
#Initialisation
fenetre=Tk()
frame = Frame(fenetre, width=200, height=100)
instance = 'Instance'
#Fonctions
def key(event):
instance = 'Instance'
hitkey = event.char
instance =
On Mon, Apr 29, 2013 at 9:40 AM, wrote:
> Well I saw this clause on most of the multiprocessing examples I saw but the
> reason it was here wasn't explained so I just ignored it (yeah stupid I
> know). I don't think I bypassed anything, at least not on purpose. I'm
> running on Windows 7 64 b
On 04/28/2013 07:40 PM, alternativ...@rocketmail.com wrote:
Well I saw this clause on most of the multiprocessing examples I saw but the
reason it was here wasn't explained so I just ignored it (yeah stupid I know).
I don't think I bypassed anything,
Yes, you skipped the essential if clause.
Well I saw this clause on most of the multiprocessing examples I saw but the
reason it was here wasn't explained so I just ignored it (yeah stupid I know).
I don't think I bypassed anything, at least not on purpose. I'm running on
Windows 7 64 bits.
--
http://mail.python.org/mailman/listinfo/p
On 04/28/2013 06:23 PM, alternativ...@rocketmail.com wrote:
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()
d
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.
On 04/28/2013 02:33 PM, alternativ...@rocketmail.com wrote:
Hi everyone,
I'm trying to use multiprocessing to avoid Python's GIL but with Tkinter,
instead of running my main function, it spawns new windows. In fact, my fuction
is used everytime I press a specified key, but with multiprocessing
Hi everyone,
I'm trying to use multiprocessing to avoid Python's GIL but with Tkinter,
instead of running my main function, it spawns new windows. In fact, my fuction
is used everytime I press a specified key, but with multiprocessing I only get
a new window when I hit a key. Does anyone have a
18 matches
Mail list logo