Re: scope acting weird

2005-05-01 Thread Mike Meyer
"Gabriel B." <[EMAIL PROTECTED]> writes: > i have the following code: > > Ui.py: > import Tkinter as Tk > import UiMainScreen > > UiMainScreen.py: > class UiMainScreen( Tk.Frame ): > > > and i get the following error: > File "UiMainScreen.py", line 1, in ? > class UiMainScreen(Tk.Fr

scope acting weird

2005-05-01 Thread Gabriel B.
i have the following code: Ui.py: import Tkinter as Tk import UiMainScreen UiMainScreen.py: class UiMainScreen( Tk.Frame ): and i get the following error: File "UiMainScreen.py", line 1, in ? class UiMainScreen(Tk.Frame): NameError: name 'Tk' is not defined isn't Tk supposed to b