[Tutor] Tkinter: no module named messagebox (brandon w)
Alan Gauld
alan.gauld at btinternet.com
Sun Aug 14 17:14:24 CEST 2011
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..
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list