Re: [Tutor] about mainloop

2006-09-27 Thread Luke Paireepinart
linda.s wrote: > I comment out > root.mainloop() > in my windows machine's Python 2.4 IDLE, everything is OK. > But if I do the same thing in Mac machine's Python 2.4 IDLE, > I can not see any map.Why? > When you edit a .py file on a windows machine (by right-clicking and hitting 'edit with idl

[Tutor] about mainloop

2006-09-27 Thread linda.s
I comment out root.mainloop() in my windows machine's Python 2.4 IDLE, everything is OK. But if I do the same thing in Mac machine's Python 2.4 IDLE, I can not see any map.Why? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinf

Re: [Tutor] file open (take 2)

2006-09-27 Thread Michael P. Reilly
On 9/27/06, Dave S <[EMAIL PROTECTED]> wrote: Hi,I am trying to read in an ascii text file, do some alterations and write itback.file = open(self.config.get('pdf','cert') + '/cert.pdf' , 'r+')lines = file.readlines()... process lines ... file.writelines(lines)file.close()works but ends up appending

Re: [Tutor] file open (take 2)

2006-09-27 Thread Luke Paireepinart
>> I am trying to read in an ascii text file, do some alterations and write it >> back. >> Sounds like a pretty useful thing to do :) >> file = open(self.config.get('pdf','cert') + '/cert.pdf' , 'r+') >> lines = file.readlines() >> Not sure what self.config.get here is doing, but that's

Re: [Tutor] file open (take 2)

2006-09-27 Thread Terry Carroll
On Wed, 27 Sep 2006, Dave S wrote: > I am trying to read in an ascii text file, do some alterations and write it > back. > > file = open(self.config.get('pdf','cert') + '/cert.pdf' , 'r+') > lines = file.readlines() > > ... process lines ... > > file.writelines(lines) > file.close() > > works

[Tutor] file open (take 2)

2006-09-27 Thread Dave S
Hi, I am trying to read in an ascii text file, do some alterations and write it back. file = open(self.config.get('pdf','cert') + '/cert.pdf' , 'r+') lines = file.readlines() ... process lines ... file.writelines(lines) file.close() works but ends up appending a second modified copy to the or

Re: [Tutor] importing module with non-standard name

2006-09-27 Thread Kent Johnson
Tiago Saboga wrote: > Hi! > > I'm still playing with man pages parsing, and following advices here, I'm > using doclifter. But I want to use the installed version on my debian system, > and not make it a part of my package. The problem is it isn't installed as a > python module, but rather as a

[Tutor] importing module with non-standard name

2006-09-27 Thread Tiago Saboga
Hi! I'm still playing with man pages parsing, and following advices here, I'm using doclifter. But I want to use the installed version on my debian system, and not make it a part of my package. The problem is it isn't installed as a python module, but rather as an executable file lying in /usr/