Re: [Tutor] Looking for ConfigObj Documentation

2009-02-21 Thread Marc Tompkins
On Fri, Feb 20, 2009 at 2:19 PM, Wayne Watson wrote: > Good. Thanks. It works fine for me now. I deleted the file. I just ran > the program again straight from the py file, and it put my the black window > with my raw_input prompt. It seems odd that it wouldn't have left text > debris when it c

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-21 Thread Marc Tompkins
On Sat, Feb 21, 2009 at 8:26 PM, Wayne Watson wrote: > I've found others like that, but I was looking for something more > descriptive. Things like typing fill-in, or cut/paste, use of F8, etc. I'd > guess there are more. > Click through a little further: http://www.ss64.com/nt/cmd.html Should t

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-21 Thread Wayne Watson
Title: Signature.html I've found others like that, but I was looking for something more descriptive. Things like typing fill-in, or cut/paste, use of F8, etc.  I'd guess there are more. Marc Tompkins wrote: On Sat, Feb 21, 2009 at 6:42 PM, Wayne Watson wrote:

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-21 Thread Wayne Watson
Title: Signature.html Yes, to a potential bad idea. I'm not quite sure why I put that in there. Possibly what I really wanted is the location of the file. There are some other entries where I want to know the location of the file. For example, the mask file. I likely want to load that file when

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-21 Thread Marc Tompkins
On Sat, Feb 21, 2009 at 6:42 PM, Wayne Watson wrote: > I tried XP's Help on command prompts. Not much there. Is there another > source? > There are lots, and Google knows most of them - here's a good one to start with: http://www.ss64.com/nt/ -- www.fsrtechnologies.com

Re: [Tutor] Default list arguments in __init__

2009-02-21 Thread Kent Johnson
On Sat, Feb 21, 2009 at 2:55 PM, spir wrote: > Le Sat, 21 Feb 2009 11:38:49 -0800, > Moos Heintzen s'exprima ainsi: > >> Hi, >> >> This behavior was totally unexpected. I only caught it because it was >> the only thing I changed. Yes, it is a common trap and a FAQ: http://effbot.org/pyfaq/why-ar

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-21 Thread Wayne Watson
Title: Signature.html I tried XP's Help on command prompts. Not much there. Is there another source? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) "Nature, to be commanded,

Re: [Tutor] Default list arguments in __init__

2009-02-21 Thread spir
Le Sat, 21 Feb 2009 11:38:49 -0800, Moos Heintzen s'exprima ainsi: > Hi, > > This behavior was totally unexpected. I only caught it because it was > the only thing I changed. > > >>> class foo: > ... def __init__(self, lst=[]): > ... self.items = lst > ... > >>> f1 = foo() >

[Tutor] Default list arguments in __init__

2009-02-21 Thread Moos Heintzen
Hi, This behavior was totally unexpected. I only caught it because it was the only thing I changed. >>> class foo: ... def __init__(self, lst=[]): ... self.items = lst ... >>> f1 = foo() >>> f1.items [] >>> f1.items.append(1) >>> f2 = foo() >>> f2.items [1] Huh? lst is a refer

[Tutor] It's all about presentation

2009-02-21 Thread bob gailer
Wayne Watson wrote: ... I started with what I might call a (well-known) bloated book on the subject, it took until chapter 3 for the author to say anything about running programs. The first programming job I had found me staring at a government issued 200 page manual printed in capitals on a

Re: [Tutor] Problems with Python 3 and Tkinter

2009-02-21 Thread Kent Johnson
On Sat, Feb 21, 2009 at 8:05 AM, Peter Anderson wrote: > By George I think I've done it!!! > > I was looking (yet again) through the Python 3 documentation and have > changed the calculator.py script to: > > from tkinter import * > from tkinter.messagebox import showerror > from math import sqrt >

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-21 Thread Wayne Watson
As it turns out QuickEdit is turned on in my XP, but certainly not by me. The unfolding of what the cmd prompt actually does reminds me of a couple of incidents. When I wrote a book on an interpretive Basic language in the early 90s, the very first paragraph began with how to exit from the int

Re: [Tutor] Problems with Python 3 and Tkinter

2009-02-21 Thread Peter Anderson
By George I think I've done it!!! I was looking (yet again) through the Python 3 documentation and have changed the calculator.py script to: from tkinter import * from tkinter.messagebox import showerror from math import sqrt ... And it now works! I would still appreciate any help with trying

Re: [Tutor] Problems with Python 3 and Tkinter

2009-02-21 Thread Alan Gauld
"Peter Anderson" wrote Additionally, is there any references to Python 3 and Tkinter other than the standard documentation (which is flimsy at best). There are a couple of other tutorials that have been upgraded to v3 but I suspect most, like mine, are still works in progress! Python 3 for

Re: [Tutor] Problems with Python 3 and Tkinter

2009-02-21 Thread Peter Anderson
I have just re-installed Python 2.5.4 and the calculator.py script runs correctly using the original script (even when no value is entered in the data input field - the error dialog displays correctly). This is very frustrating! Clearly there is something different in the way Python 3.0.1 is h

[Tutor] Problems with Python 3 and Tkinter

2009-02-21 Thread Peter Anderson
I am trying to learn Python and have just installed Python 3. I am going back over some previous scripts trying to convert them to run under Python 3 (and hopefully learn a bit more in the process). I am having great problems with scripts that use Tkinter. A typical example is a script called c

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-21 Thread Tim Golden
Alan Gauld wrote: Cut n paste of the path works, but you can also use tab to complete the file name which speeds things up considerably. And you can drag a file in from explorer to a Console window to get the full path pasted in automatically. Even on DOS F3 repeated the last command but on XP

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-21 Thread Alan Gauld
"Wayne Watson" wrote My assumption was is was fully a DOS window. No its a DOS window on steroids! Thee are a ton of improvements to the DOS shell in XP most of which are turned off by default. Take half an hour to go through the help screens for CMD and turn on the various registry set