Re: [Tutor] ftplib.storbinary and using a progress bar

2008-09-06 Thread Terry Carroll
On Sat, 6 Sep 2008, johnf wrote: > I'm currently using ftplib.storbinary() to upload a file to a FTP server. > However, I would like to inform the user of the progress being made during > the file transfer (it could be a very long transfer). But > ftplib.storbinary() has no callback like retr

[Tutor] ftplib.storbinary and using a progress bar

2008-09-06 Thread johnf
Hi, I'm currently using ftplib.storbinary() to upload a file to a FTP server. However, I would like to inform the user of the progress being made during the file transfer (it could be a very long transfer). But ftplib.storbinary() has no callback like retrbinary() so does anyone have a though

Re: [Tutor] Problems starting python

2008-09-06 Thread arsyed
On Fri, Sep 5, 2008 at 6:28 AM, Linus Lindström <[EMAIL PROTECTED]> wrote: > Hello. When i first installed python from the cd i bought it seemed to work > perfectly... But then when i cancel the program and try to start it again I > get the message: "IDLE's subprocess didn't make connection. Either

Re: [Tutor] Need help with using methods in a base class

2008-09-06 Thread Alan Gauld
"Roy Khristopher Bayot" <[EMAIL PROTECTED]> wrote ... def generateClockPulse(self): ... parallel.Parallel.setSelect(0) ... parallel.Parallel.setSelect(1) ... a = LightsHandle() a.setD(0xF0) Traceback (most recent call last): File "", line 1, in File "", line 5,

Re: [Tutor] Sending email as html

2008-09-06 Thread Alan Gauld
"Tim Johnson" <[EMAIL PROTECTED]> wrote since PDF files are not very hard to edit with a simple text editor. (Never have really.) Looks like I could make up a PDF template and then put substitutions You could although they are not pure text files so you may need to use binary mode to edit th

Re: [Tutor] Need help with using methods in a base class

2008-09-06 Thread Kent Johnson
On Sat, Sep 6, 2008 at 12:04 PM, Roy Khristopher Bayot <[EMAIL PROTECTED]> wrote: > Hi. I am having some difficulty using methods from a base class. > > I have 2 classes. The first one is Parallel which is inside the module > parallel. The methods useful to me from this class are setDataStrobe(), >

[Tutor] Need help with using methods in a base class

2008-09-06 Thread Roy Khristopher Bayot
Hi. I am having some difficulty using methods from a base class. I have 2 classes. The first one is Parallel which is inside the module parallel. The methods useful to me from this class are setDataStrobe(), setAutoFeed(), setInitOut(), setSelect(), and setData(). The second one is derived from t

Re: [Tutor] Sending email as html

2008-09-06 Thread Tim Johnson
On Saturday 06 September 2008, Glen Wheeler wrote: > From: "Alan Gauld" <[EMAIL PROTECTED]> > > > "Lie Ryan" <[EMAIL PROTECTED]> wrote > > > >>> programs which can edit PDFs which has somewhat destroyed > >>> their value as a read-only document format for contracts, invoices > >>> etc... > >> > >>

Re: [Tutor] Sending email as html

2008-09-06 Thread Alan Gauld
"Glen Wheeler" <[EMAIL PROTECTED]> wrote If you have used tried using any PDF editor for more than correcting typos, you'd still consider it as a read-only document. True. but for contracts or invoices just changing a 1 to a 7 or vice versa can make a big difference to the money owed! And

Re: [Tutor] Replace sequence in list - looking for direction

2008-09-06 Thread Alan Gauld
"peter hodgson" <[EMAIL PROTECTED]> wrote for key in b: keylist = key.split(',') if keylist < a: i = a.index(keylist[0]) print a[:i] + [b[key]] + a[i+len(keylist):] now, i get it, mostly; but keylist being shorter than the list "a" keylist < a True This is not testin

Re: [Tutor] how do you make this a better code?

2008-09-06 Thread Roy Khristopher Bayot
Hi. I tried it. It worked. Thank you. On Fri, Sep 5, 2008 at 9:42 AM, Kent Johnson <[EMAIL PROTECTED]> wrote: > On Thu, Sep 4, 2008 at 9:00 PM, Roy Khristopher Bayot > <[EMAIL PROTECTED]> wrote: > > > class CamHandle(object): > > def __init__(self): > > import os > > w = os.sy

Re: [Tutor] Support for datetime module

2008-09-06 Thread Kent Johnson
On Sat, Sep 6, 2008 at 2:42 AM, Johan Geldenhuys <[EMAIL PROTECTED]> wrote: > Hi all, > > I have want to use the datetime module on a system with ver 2.2.3 installed. > I know it's very old, but that's what I have to deal with and can't upgrade. > So please don't suggest that. > > As you know datet

[Tutor] Support for datetime module

2008-09-06 Thread Johan Geldenhuys
Hi all, I have want to use the datetime module on a system with ver 2.2.3 installed. I know it's very old, but that's what I have to deal with and can't upgrade. So please don't suggest that. As you know datetime was available from version 2.3. I want to know where can I get the datetim

Re: [Tutor] Replace sequence in list - looking for direction

2008-09-06 Thread peter hodgson
greetings, fellow ventriloquists; the exchanges on this list are great tutorials; sometimes i don't quite get the finer points; like here: On Mon, Jun 16, 2008 at 10:41 AM, GTXY20 <[EMAIL PROTECTED]> wrote: > Let's say I have a list like the following: > > a = ['a1','a2','a3','a4','a5','a6'] >

Re: [Tutor] Sending email as html

2008-09-06 Thread Glen Wheeler
From: "Alan Gauld" <[EMAIL PROTECTED]> "Lie Ryan" <[EMAIL PROTECTED]> wrote programs which can edit PDFs which has somewhat destroyed their value as a read-only document format for contracts, invoices etc... If you have used tried using any PDF editor for more than correcting typos, you'd st

Re: [Tutor] Sending email as html

2008-09-06 Thread Alan Gauld
"Lie Ryan" <[EMAIL PROTECTED]> wrote programs which can edit PDFs which has somewhat destroyed their value as a read-only document format for contracts, invoices etc... If you have used tried using any PDF editor for more than correcting typos, you'd still consider it as a read-only document.