Re: using import * with GUIs?
- From: "akameswaran@xxxxxxxxx" <akameswaran@xxxxxxxxx>
- Date: 31 May 2006 12:35:34 -0700
John Salerno wrote:
Hi all. Quick question (but aren't they all?) :)
Do you think it's a good idea to use the 'from <name> import *'
statement when using a GUI module? It seems on wxPython's site, they
recommend using import wx nowadays, but I wonder if that advice is
followed. Also, I'm still reading some Tkinter docs that seem to use
'from Tkinter import *' a lot.
I understand the danger of doing this, but is it safer in these cases,
given the more specific names that GUI frameworks tend to use
(sometimes!)? Or should you still qualify all your calls with the module?
The python style guide takes no position on this.
Personally I prefer explicit to implicit, and typing wx. is not really
that much to type is it?
.
- Follow-Ups:
- Re: using import * with GUIs?
- From: John Salerno
- Re: using import * with GUIs?
- References:
- using import * with GUIs?
- From: John Salerno
- using import * with GUIs?
- Prev by Date: using import * with GUIs?
- Next by Date: Re: using import * with GUIs?
- Previous by thread: using import * with GUIs?
- Next by thread: Re: using import * with GUIs?
- Index(es):