On 08/14/2011 11:14 AM, Alan Gauld wrote:
On 14/08/11 14:07, Wayne Werner wrote:
Of course I personally I usually do

import Tkinter as tk

Which means I only have to type 3 extra characters, but it removes any
ambiguity - tk.Something had to come from Tkinter

Thats exactly what I tend to do nowadays.

I used to use the import * method for tkinter but eventually
I got bit by a name clash and it took too long to realize the
problem so I now use the "import as tk" shortcut except for
very short scripts - usually just for tests or experiments..

Thanks. I just downloaded the pdf from your website.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to