Re: [Tutor] threading tutorial

2017-06-02 Thread Michael C
ihave to look at this tomorrow, thanks for the reply! On Thu, Jun 1, 2017 at 6:18 PM Alan Gauld via Tutor wrote: > On 01/06/17 16:30, Michael C wrote: > > Oh i get it alright, however in my code I have to push the W button like > > this: > > > > import pyautogui > > import

Re: [Tutor] threading tutorial

2017-06-01 Thread Alan Gauld via Tutor
On 01/06/17 16:30, Michael C wrote: > Oh i get it alright, however in my code I have to push the W button like > this: > > import pyautogui > import time > > pyautogui.keyDown('w') > time.sleep(2) > pyautogui.keyUp('w') So this emulates a user pressing the w key for 2 seconds. What's not clear

Re: [Tutor] threading tutorial

2017-06-01 Thread Michael C
let me try that! thanks! On Thu, Jun 1, 2017 at 10:52 AM, Jerry Hill wrote: > On Thu, Jun 1, 2017 at 11:30 AM, Michael C > wrote: > > Oh i get it alright, however in my code I have to push the W button like > > this: > > > > import

Re: [Tutor] threading tutorial

2017-06-01 Thread Jerry Hill
On Thu, Jun 1, 2017 at 11:30 AM, Michael C wrote: > Oh i get it alright, however in my code I have to push the W button like > this: > > import pyautogui > import time > > pyautogui.keyDown('w') > time.sleep(2) > pyautogui.keyUp('w') ... > theoretically deals

Re: [Tutor] threading tutorial

2017-06-01 Thread Michael C
Oh i get it alright, however in my code I have to push the W button like this: import pyautogui import time pyautogui.keyDown('w') time.sleep(2) pyautogui.keyUp('w') while the example you gave: def fn(): global run_me while run_me: ... do some work ... and then elsewhere you

Re: [Tutor] threading tutorial

2017-05-26 Thread Michael C
message received, i ll take a look tomorrow asap. thanks for replying!!! On Thu, May 25, 2017 at 3:03 PM, Cameron Simpson wrote: > On 25May2017 11:52, Michael C wrote: > >> Right now all i need is to grab 3 values from 3 variables before

Re: [Tutor] threading tutorial

2017-05-25 Thread Cameron Simpson
On 25May2017 11:52, Michael C wrote: Right now all i need is to grab 3 values from 3 variables before killing a thread, like this: def stuff(): do stuff, get values, (x,y,d) # main code startthread(stuff(), blah) # if else need to sleep or kill the thread,

Re: [Tutor] threading tutorial

2017-05-25 Thread Michael C
Right now all i need is to grab 3 values from 3 variables before killing a thread, like this: def stuff(): do stuff, get values, (x,y,d) # main code startthread(stuff(), blah) # if else need to sleep or kill the thread, and because I'll restart the thread later, I'd like to get the

[Tutor] threading tutorial

2017-05-25 Thread Michael C
Hi all: I tried to google for tutorials of threading, but they are all equally confusing. Does someone know of a good page or a book that talk about threading? thanks! ___ Tutor maillist - Tutor@python.org To unsubscribe or change