[Tutor] interface

Alex Kleider akleider at sonic.net
Fri Dec 18 17:56:37 EST 2015


On 2015-12-18 14:13, Mark Lawrence wrote:
> On 18/12/2015 18:38, Alex Kleider wrote:

>> Another issue about which I'd like to hear comments has to do with
>> how the imports are done.
>> Roseman indicates that
>>      from tkinter import *
>>      from tkinter import ttk
>> is the generally accepted way of doing the importing but the first 
>> line
>> uses a syntax that is strongly discouraged so my inclination is to use
>>      import tkinter as tk
>>      from tkinter import ttk
>> instead.
>> 
>> Comments?
>> 
> 
> from xyz import * is The Road To Hell.
> 
> Sticking with the explicit way of importing modules makes life so much
> easier in the long term that there is IMHO nothing to discuss.

Vindicated!
Thank you.
Alex


More information about the Tutor mailing list