Re: [Tutor] Closing and Open File--TkFileDialogs

2009-02-07 Thread Wayne Watson
Title: Signature.html Fine. Onto another trail. Kent Johnson wrote: On Sat, Feb 7, 2009 at 10:09 AM, Wayne Watson wrote: I may be mistaken, but I do not think any of the documentation I've seen on these two methods states what type of result is produced. That is really my point

Re: [Tutor] Closing and Open File--TkFileDialogs

2009-02-07 Thread Kent Johnson
On Sat, Feb 7, 2009 at 10:09 AM, Wayne Watson wrote: > I may be mistaken, but I do not think any of the documentation I've seen on > these two methods states what type of result is produced. That is really my > point. I had to find out the hard way by printing out the result. I'm mystified. "Ret

Re: [Tutor] Closing and Open File--TkFileDialogs

2009-02-07 Thread W W
On Sat, Feb 7, 2009 at 9:09 AM, Wayne Watson wrote: > Yes, amazingly enough, I'm quite familiar with basic file operations. :-) > I'm certainly no expert at all variations of it. > > Now for a related question. I'm using Win XP. One of the arguments is the > default_path. I would like it to be t

Re: [Tutor] Closing and Open File--TkFileDialogs

2009-02-07 Thread Wayne Watson
Title: Signature.html Yes, amazingly enough, I'm quite familiar with basic file operations. :-) I'm certainly no expert at all variations of it. Output from the sample program: 1. file is open and ready for writing. Here's return for asksaveasFILE:  2. you opened in write mode. return for

Re: [Tutor] Closing and Open File--TkFileDialogs

2009-02-07 Thread Kent Johnson
On Fri, Feb 6, 2009 at 9:59 PM, Wayne Watson wrote: > Yes, I probably confused the two. The link you mentioned is the one I found > most helpful of the ones I mentioned. Note that his descriptions here, like > others, and to me at least, are minimal. I think, as Alan says, there just is not much

Re: [Tutor] Closing and Open File--TkFileDialogs

2009-02-07 Thread Wayne Watson
Title: Signature.html (Guilty again of not hitting Reply All. I responded (to Kent) 8 hours ago. If anyone is against the controversial way this mail list handles replies, put me at the top of the list. In my book this list is unique in the way it handles replies.) Yes, I probably confused the

Re: [Tutor] Closing and Open File--TkFileDialogs

2009-02-07 Thread Alan Gauld
"Wayne Watson" wrote I'm using asksaveasfilename, and, as I understand it, it returns the file name to me in write mode. No it retuirns the filename. It is a string. Exactly like you would get from raw_input() in a command line application. It has no "mode", it is just a string. It is up t

Re: [Tutor] Closing and Open File--TkFileDialogs

2009-02-06 Thread Kent Johnson
On Fri, Feb 6, 2009 at 6:53 PM, Wayne Watson wrote: > I'm using asksaveasfilename, and, as I understand it, it returns the file > name to me in write mode. I don't recall that there's a way to reference the > file with only the filename. That is, there's no filename.write(). Comments? I think you

[Tutor] Closing and Open File--TkFileDialogs

2009-02-06 Thread Wayne Watson
Title: Signature.html I'm using asksaveasfilename, and, as I understand it, it returns the file name to me in write mode. I don't recall that there's a way to reference the file with only the filename. That is, there's no filename.write(). Comments? While I'm at it, I have found a good example