Re: [Tutor] Wrapping my head around global variables!!

2011-01-31 Thread Elwin Estle
From: Nevins Duret Subject: Re: [Tutor] Wrapping my head around global variables!! To: tutor@python.org Date: Sunday, January 30, 2011, 2:19 PM Hello Elwin,    Elwin I have no objections with you taking the idea, all I want to do is learn and connect with my some and giv

Re: [Tutor] Wrapping my head around global variables!!

2011-01-30 Thread Alan Gauld
"Nevins Duret" wrote import tkinter.font When I try and run this code, I get the error: |Traceback (most recent call last): File "/home/neduret/pythonproj/alphabet3.py", line 21, in lgFont = tkinter.font(family = "HELVETICA", size = 200) TypeError: 'module' object is not callable|

Re: [Tutor] Wrapping my head around global variables!!

2011-01-30 Thread Nevins Duret
arn a few things, like the whole "button - command" thing. It was driving me nuts, until I found out what the problem was. And it was a chance to use the code somebody on python tutor gave me for creating Tkinter widgets "on the fly" at program runtime. --- On Fri, 1/

Re: [Tutor] Wrapping my head around global variables!!

2011-01-28 Thread bob gailer
On 1/28/2011 10:22 AM, Nevins Duret wrote: Hello Python collective, I am trying to wrap my head around what exactly is causing me not to get any output or error message in the following code: There are so many problems with this program it is hard to know where to begin. Have you suc

Re: [Tutor] Wrapping my head around global variables!!

2011-01-28 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Nevins Duret wrote: Hello Python collective, I am trying to wrap my head around what exactly is causing me not to get any output or error message in the following code: #!/usr/bin/env python3.1 import random def main(): def chosen_letter(): chosen_letter = Conson

Re: [Tutor] Wrapping my head around global variables!!

2011-01-28 Thread Elwin Estle
In either case I don't see anywhere in the code where you actually have the user type anything. But then, like I say, I am no python expert, by any means. --- On Fri, 1/28/11, Nevins Duret wrote: > From: Nevins Duret > Subject: [Tutor] Wrapping my head around global variables!! &

Re: [Tutor] Wrapping my head around global variables!!

2011-01-28 Thread Peter Otten
Nevins Duret wrote: > Hello Python collective, > > I am trying to wrap my head around what exactly is causing me > not to get any output or error message in the following code: > >> #!/usr/bin/env python3.1 >> >> import random >> >> def main(): >> >> def chosen_letter(): >> >>

[Tutor] Wrapping my head around global variables!!

2011-01-28 Thread Nevins Duret
Hello Python collective, I am trying to wrap my head around what exactly is causing me not to get any output or error message in the following code: #!/usr/bin/env python3.1 import random def main(): def chosen_letter(): chosen_letter = Consonant() chosen_lette