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

[Tutor] Pasting an image with transparency

2017-06-01 Thread Terry
Slackware 14.2 64-bit Python 2.7.13 I am trying to automate some photo processing by pasting a sig or watermark. The sig image is a .png with transparency but when it pastes it does so with a black background. Is there a way to paste with transparency? from PIL import Image from PIL import

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