Re: [Tutor] Hi all: How do I save a file in a designated folder?

2017-05-02 Thread Alan Gauld via Tutor
On 03/05/17 00:28, Cameron Simpson wrote: >> And so forth? I assume you mean >> >> MMDD.png format? >> >> You should read about the strftime function in the time > > Further to this, I would also advocate that you consider writing the > timestamp > from largest unit to smallest unit, like a

Re: [Tutor] Hi all: How do I save a file in a designated folder?

2017-05-02 Thread eryk sun
On Tue, May 2, 2017 at 6:09 PM, Michael C wrote: > screenshot.save("\test\missed.png") You probably know that "\t" represents a tab in a string literal, but there's something about working with a path that causes people to overlook this. Windows won't overlook it. Control characters, i.e. charact

Re: [Tutor] Hi all: How do I save a file in a designated folder?

2017-05-02 Thread Cameron Simpson
On 03May2017 00:01, Alan Gauld wrote: On 02/05/17 19:09, Michael C wrote: 1. How to name the file with time stamp. e.g. 05012017.png and so forth. And so forth? I assume you mean MMDD.png format? You should read about the strftime function in the time (and datetime) module. Other fu

Re: [Tutor] Hi all: How do I save a file in a designated folder?

2017-05-02 Thread Alan Gauld via Tutor
On 02/05/17 19:09, Michael C wrote: > from PIL import Image > from PIL import ImageGrab > > screenshot = ImageGrab.grab() > screenshot.show() > screenshot.save("\test\missed.png") > > This is my current code, using Python Image Library! You should probably investigate Pillow, I believe developme

Re: [Tutor] Hi All

2006-09-05 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Amit Rane > Sent: Saturday, September 02, 2006 4:52 AM > To: tutor@python.org > Subject: [Tutor] Hi All > > Hi , > This is Amit from India ... > i have just started working on Python ... >

Re: [Tutor] Hi All

2006-09-02 Thread John Purser
On Sat, 2 Sep 2006 13:39:05 +0200 tomd <[EMAIL PROTECTED]> wrote: > > i have just started working on Python ... > > please let me know the books to refer to start > > learning > > I recommend Beginning Python from Magnus Lie Hetland, apart from being > comprehensive and targetted at beginners, it

Re: [Tutor] Hi All

2006-09-02 Thread tomd
> i have just started working on Python ... > please let me know the books to refer to start > learning I recommend Beginning Python from Magnus Lie Hetland, apart from being comprehensive and targetted at beginners, it will take you through the develoopment of 10 various projects, including game,