Re: import X vs from x import *

2008-05-22 Thread J. Cliff Dyer
On Thu, 2008-05-22 at 10:44 -0700, [EMAIL PROTECTED] wrote: > import Tkinter > from Tkinter import * > > i have a program where if i comment out either of those import- > statements i get an error. > > i thought they meant the same thing and from was supposed to be just > to imort just a specific

Re: import X vs from x import *

2008-05-22 Thread Tommy Grav
On May 22, 2008, at 1:44 PM, [EMAIL PROTECTED] wrote: import Tkinter With this you call functions from Tkinter as Tkinter.function() from Tkinter import * Here you just call function() i have a program where if i comment out either of those import- statements i get an error. i thoug

Re: import X vs from x import *

2008-05-22 Thread inhahe
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > import Tkinter > from Tkinter import * > > i have a program where if i comment out either of those import- > statements i get an error. > > i thought they meant the same thing and from was supposed to be just > to imort just a specific

import X vs from x import *

2008-05-22 Thread notnorwegian
import Tkinter from Tkinter import * i have a program where if i comment out either of those import- statements i get an error. i thought they meant the same thing and from was supposed to be just to imort just a specific function and the * imports everything in the module. but aparently the abov