Re: namespaces, scoping and variables

2010-08-03 Thread Jean-Michel Pichavant
rantingrick wrote: On Aug 2, 3:12 pm, Chris Hare ch...@labr.net wrote: Also you should use 4 space indention and never use tabs. This is the accepted way. Then ask yourself why tabs are still in python 3. Nice troll by the way. JM -- http://mail.python.org/mailman/listinfo/python-list

namespaces, scoping and variables

2010-08-02 Thread Chris Hare
I am having a problem getting around this variable namespace thing. Consider these code bits File a.py from Tkinter import * import a1 def doAgain(): x = a1.Net() x.show(Again!) root = Tk() root.title(test) f = Frame(root,bg=Yellow) l = Button(root,text=window

Re: namespaces, scoping and variables

2010-08-02 Thread Thomas Jollans
On 08/02/2010 09:33 PM, Chris Hare wrote: I am having a problem getting around this variable namespace thing. Consider these code bits File a.py from Tkinter import * import a1 def doAgain(): x = a1.Net() x.show(Again!) root = Tk() root.title(test) f =

Re: namespaces, scoping and variables

2010-08-02 Thread Dave Angel
Chris Hare wrote: I am having a problem getting around this variable namespace thing. Consider these code bits File a.py from Tkinter import * import a1 def doAgain(): x =1.Net() x.show(Again!) root =k() root.title(test) f =rame(root,bg=Yellow) l =utton(root,text=window

Re: namespaces, scoping and variables

2010-08-02 Thread MRAB
Chris Hare wrote: I am having a problem getting around this variable namespace thing. Consider these code bits File a.py from Tkinter import * import a1 def doAgain(): x = a1.Net() x.show(Again!) root = Tk() root.title(test) f = Frame(root,bg=Yellow) l =

Re: namespaces, scoping and variables

2010-08-02 Thread Ethan Furman
Chris Hare wrote: I am having a problem getting around this variable namespace thing. Consider these code bits File a.py from Tkinter import * import a1 def doAgain(): x = a1.Net() x.show(Again!) root = Tk() root.title(test) f = Frame(root,bg=Yellow) l =

Re: namespaces, scoping and variables

2010-08-02 Thread Chris Hare
Thanks to everyone for answering my question. I think its clear now. I'll just go the stuff 'em in a module and import that route. Chris On Aug 2, 2010, at 3:03 PM, MRAB wrote: Chris Hare wrote: I am having a problem getting around this variable namespace thing. Consider these code bits

Re: namespaces, scoping and variables

2010-08-02 Thread rantingrick
On Aug 2, 3:12 pm, Chris Hare ch...@labr.net wrote: Thanks to everyone for answering my question.  I think its clear now.  I'll just go the stuff 'em in a module and import that route. Chris, first of all i want you to know that this message is not meant to offend but it may offend you --