Commit bd441efd authored by Barry Warsaw's avatar Barry Warsaw

Move the "from Tkinter import *" out of the method and into the module

scope (still inside the __name__=='__main__' guard).  Necessitated by
recent addition of nested scopes.
parent 1f1011ef
......@@ -90,9 +90,10 @@ def save():
# test stuff
if __name__ == '__main__':
from Tkinter import *
class Tester:
def __init__(self):
from Tkinter import *
self.__root = tk = Tk()
b = Button(tk, text='Choose Color...', command=self.__choose)
b.pack()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment