diff options
author | Barry Warsaw <barry@python.org> | 2001-02-01 20:52:08 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-02-01 20:52:08 (GMT) |
commit | 74a7ece9f3b56d82ffc11a31307f3ad1382adb97 (patch) | |
tree | f3d2f5625c8a1d103ae0beac24bd364e7dbcfbda /Tools/pynche | |
parent | 4589bd82da3c2ba49591172d71c27add67b198d7 (diff) | |
download | cpython-74a7ece9f3b56d82ffc11a31307f3ad1382adb97.zip cpython-74a7ece9f3b56d82ffc11a31307f3ad1382adb97.tar.gz cpython-74a7ece9f3b56d82ffc11a31307f3ad1382adb97.tar.bz2 |
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.
Diffstat (limited to 'Tools/pynche')
-rw-r--r-- | Tools/pynche/pyColorChooser.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/pynche/pyColorChooser.py b/Tools/pynche/pyColorChooser.py index 788ad5a..1a920c3 100644 --- a/Tools/pynche/pyColorChooser.py +++ b/Tools/pynche/pyColorChooser.py @@ -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() |