[Tutor] Tkinter: no module named messagebox (brandon w)

brandon w thisisonlyatest at gmx.com
Wed Aug 17 04:26:04 CEST 2011


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.


More information about the Tutor mailing list