diff options
Diffstat (limited to 'Demo/tkinter')
60 files changed, 66 insertions, 66 deletions
diff --git a/Demo/tkinter/guido/AttrDialog.py b/Demo/tkinter/guido/AttrDialog.py index 921c105ae2..5508e3b9f1 100755 --- a/Demo/tkinter/guido/AttrDialog.py +++ b/Demo/tkinter/guido/AttrDialog.py @@ -12,7 +12,7 @@ # -- totally static, though different between PackDialog and WidgetDialog # (but even that could be unified) -from Tkinter import * +from tkinter import * class Option: diff --git a/Demo/tkinter/guido/ManPage.py b/Demo/tkinter/guido/ManPage.py index 1266f1cee0..a9309a38f9 100755 --- a/Demo/tkinter/guido/ManPage.py +++ b/Demo/tkinter/guido/ManPage.py @@ -1,9 +1,9 @@ # Widget to display a man page import re -from Tkinter import * -from Tkinter import _tkinter -from ScrolledText import ScrolledText +from tkinter import * +from tkinter import _tkinter +from tkinter.scrolledtext import ScrolledText # XXX These fonts may have to be changed to match your system BOLDFONT = '*-Courier-Bold-R-Normal-*-120-*' diff --git a/Demo/tkinter/guido/MimeViewer.py b/Demo/tkinter/guido/MimeViewer.py index 7494425895..11701cd0f2 100755 --- a/Demo/tkinter/guido/MimeViewer.py +++ b/Demo/tkinter/guido/MimeViewer.py @@ -5,8 +5,8 @@ import string from types import * -from Tkinter import * -from ScrolledText import ScrolledText +from tkinter import * +from tkinter.scrolledtext import ScrolledText class MimeViewer: def __init__(self, parent, title, msg): diff --git a/Demo/tkinter/guido/ShellWindow.py b/Demo/tkinter/guido/ShellWindow.py index c1d56ef804..fffcbc5b97 100755 --- a/Demo/tkinter/guido/ShellWindow.py +++ b/Demo/tkinter/guido/ShellWindow.py @@ -1,9 +1,9 @@ import os import sys import string -from Tkinter import * -from ScrolledText import ScrolledText -from Dialog import Dialog +from tkinter import * +from tkinter.scrolledtext import ScrolledText +from tkinter.dialog import Dialog import signal BUFSIZE = 512 diff --git a/Demo/tkinter/guido/brownian.py b/Demo/tkinter/guido/brownian.py index 8007f141cb..7ab3e6787f 100644 --- a/Demo/tkinter/guido/brownian.py +++ b/Demo/tkinter/guido/brownian.py @@ -1,6 +1,6 @@ # Brownian motion -- an example of a multi-threaded Tkinter program. -from Tkinter import * +from tkinter import * import random import threading import time diff --git a/Demo/tkinter/guido/brownian2.py b/Demo/tkinter/guido/brownian2.py index 281a645b68..dc1d43ac86 100644 --- a/Demo/tkinter/guido/brownian2.py +++ b/Demo/tkinter/guido/brownian2.py @@ -1,7 +1,7 @@ # Brownian motion -- an example of a NON multi-threaded Tkinter program ;) # By Michele Simoniato, inspired by brownian.py -from Tkinter import * +from tkinter import * import random import sys diff --git a/Demo/tkinter/guido/canvasevents.py b/Demo/tkinter/guido/canvasevents.py index 74ed76f61b..aeb0eb1d62 100644 --- a/Demo/tkinter/guido/canvasevents.py +++ b/Demo/tkinter/guido/canvasevents.py @@ -1,6 +1,6 @@ #! /usr/bin/env python -from Tkinter import * +from tkinter import * from Canvas import Oval, Group, CanvasText diff --git a/Demo/tkinter/guido/dialog.py b/Demo/tkinter/guido/dialog.py index 426eca4195..1832ba481b 100755 --- a/Demo/tkinter/guido/dialog.py +++ b/Demo/tkinter/guido/dialog.py @@ -4,7 +4,7 @@ # optional bitmap, and any number of buttons. # Cf. Ousterhout, Tcl and the Tk Toolkit, Figs. 27.2-3, pp. 269-270. -from Tkinter import * +from tkinter import * import sys diff --git a/Demo/tkinter/guido/electrons.py b/Demo/tkinter/guido/electrons.py index fdc558f885..e3bf468787 100755 --- a/Demo/tkinter/guido/electrons.py +++ b/Demo/tkinter/guido/electrons.py @@ -11,7 +11,7 @@ # /usr/include/X11/bitmaps for samples); it is displayed as the # background of the animation. Default is no bitmap. -from Tkinter import * +from tkinter import * import random diff --git a/Demo/tkinter/guido/hanoi.py b/Demo/tkinter/guido/hanoi.py index 58ba1d1ac4..a29b1d7dab 100755 --- a/Demo/tkinter/guido/hanoi.py +++ b/Demo/tkinter/guido/hanoi.py @@ -10,7 +10,7 @@ # background of the animation. Default is no bitmap. # This uses Steen Lumholt's Tk interface -from Tkinter import * +from tkinter import * # Basic Towers-of-Hanoi algorithm: move n pieces from a to b, using c diff --git a/Demo/tkinter/guido/hello.py b/Demo/tkinter/guido/hello.py index 358a7ecebd..f10fb7a3fb 100755 --- a/Demo/tkinter/guido/hello.py +++ b/Demo/tkinter/guido/hello.py @@ -1,7 +1,7 @@ # Display hello, world in a button; clicking it quits the program import sys -from Tkinter import * +from tkinter import * def main(): root = Tk() diff --git a/Demo/tkinter/guido/imagedraw.py b/Demo/tkinter/guido/imagedraw.py index d3dba4565c..a168831abd 100755 --- a/Demo/tkinter/guido/imagedraw.py +++ b/Demo/tkinter/guido/imagedraw.py @@ -1,6 +1,6 @@ """Draw on top of an image""" -from Tkinter import * +from tkinter import * import sys def main(): diff --git a/Demo/tkinter/guido/imageview.py b/Demo/tkinter/guido/imageview.py index d6efed0b2b..276858a6d8 100755 --- a/Demo/tkinter/guido/imageview.py +++ b/Demo/tkinter/guido/imageview.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * import sys def main(): diff --git a/Demo/tkinter/guido/kill.py b/Demo/tkinter/guido/kill.py index 36b479d8e2..36caba6be2 100755 --- a/Demo/tkinter/guido/kill.py +++ b/Demo/tkinter/guido/kill.py @@ -1,7 +1,7 @@ #! /usr/bin/env python # Tkinter interface to Linux `kill' command. -from Tkinter import * +from tkinter import * from string import splitfields from string import split import subprocess diff --git a/Demo/tkinter/guido/listtree.py b/Demo/tkinter/guido/listtree.py index d28ce49ef2..625d20e622 100755 --- a/Demo/tkinter/guido/listtree.py +++ b/Demo/tkinter/guido/listtree.py @@ -3,7 +3,7 @@ import sys import string -from Tkinter import * +from tkinter import * def listtree(master, app): list = Listbox(master, name='list') diff --git a/Demo/tkinter/guido/mbox.py b/Demo/tkinter/guido/mbox.py index 88b0b89c87..45c384e66c 100755 --- a/Demo/tkinter/guido/mbox.py +++ b/Demo/tkinter/guido/mbox.py @@ -9,7 +9,7 @@ import getopt import string import mhlib -from Tkinter import * +from tkinter import * from dialog import dialog diff --git a/Demo/tkinter/guido/newmenubardemo.py b/Demo/tkinter/guido/newmenubardemo.py index 57bf13c444..51c4e64771 100644 --- a/Demo/tkinter/guido/newmenubardemo.py +++ b/Demo/tkinter/guido/newmenubardemo.py @@ -2,7 +2,7 @@ """Play with the new Tk 8.0 toplevel menu option.""" -from Tkinter import * +from tkinter import * class App: diff --git a/Demo/tkinter/guido/optionmenu.py b/Demo/tkinter/guido/optionmenu.py index 7365fa628e..1e72aa5895 100644 --- a/Demo/tkinter/guido/optionmenu.py +++ b/Demo/tkinter/guido/optionmenu.py @@ -1,6 +1,6 @@ # option menu sample (Fredrik Lundh, September 1997) -from Tkinter import * +from tkinter import * root = Tk() diff --git a/Demo/tkinter/guido/paint.py b/Demo/tkinter/guido/paint.py index 7b2e814c65..65f2353110 100644 --- a/Demo/tkinter/guido/paint.py +++ b/Demo/tkinter/guido/paint.py @@ -20,7 +20,7 @@ options like other shapes or colors... davem@magnet.com """ -from Tkinter import * +from tkinter import * """paint.py: not exactly a paint program.. just a smooth line drawing demo.""" diff --git a/Demo/tkinter/guido/rmt.py b/Demo/tkinter/guido/rmt.py index c177c72993..7b3f700e19 100755 --- a/Demo/tkinter/guido/rmt.py +++ b/Demo/tkinter/guido/rmt.py @@ -11,7 +11,7 @@ # XXX This should be written in a more Python-like style!!! -from Tkinter import * +from tkinter import * import sys # 1. Create basic application structure: menu bar on top of diff --git a/Demo/tkinter/guido/solitaire.py b/Demo/tkinter/guido/solitaire.py index a521c66580..b2a2a667f1 100755 --- a/Demo/tkinter/guido/solitaire.py +++ b/Demo/tkinter/guido/solitaire.py @@ -25,7 +25,7 @@ know! import math import random -from Tkinter import * +from tkinter import * from Canvas import Rectangle, CanvasText, Group, Window diff --git a/Demo/tkinter/guido/sortvisu.py b/Demo/tkinter/guido/sortvisu.py index 27dc9f001b..0c71fc94f7 100644 --- a/Demo/tkinter/guido/sortvisu.py +++ b/Demo/tkinter/guido/sortvisu.py @@ -19,7 +19,7 @@ stand-alone application. """ -from Tkinter import * +from tkinter import * from Canvas import Line, Rectangle import random diff --git a/Demo/tkinter/guido/ss1.py b/Demo/tkinter/guido/ss1.py index d957907bc7..6a7aefccca 100644 --- a/Demo/tkinter/guido/ss1.py +++ b/Demo/tkinter/guido/ss1.py @@ -485,7 +485,7 @@ def colnum2name(n): s = chr(m+ord('A')) + s return s -import Tkinter as Tk +import tkinter as Tk class SheetGUI: diff --git a/Demo/tkinter/guido/svkill.py b/Demo/tkinter/guido/svkill.py index b9d82abe97..0dd9f954eb 100755 --- a/Demo/tkinter/guido/svkill.py +++ b/Demo/tkinter/guido/svkill.py @@ -2,7 +2,7 @@ # Tkinter interface to SYSV `ps' and `kill' commands. -from Tkinter import * +from tkinter import * if TkVersion < 4.0: raise ImportError("This version of svkill requires Tk 4.0 or later") diff --git a/Demo/tkinter/guido/switch.py b/Demo/tkinter/guido/switch.py index 3b58f7ce47..3f43925326 100644 --- a/Demo/tkinter/guido/switch.py +++ b/Demo/tkinter/guido/switch.py @@ -1,6 +1,6 @@ # Show how to do switchable panels. -from Tkinter import * +from tkinter import * class App: diff --git a/Demo/tkinter/guido/tkman.py b/Demo/tkinter/guido/tkman.py index c84d889629..52b6d03904 100755 --- a/Demo/tkinter/guido/tkman.py +++ b/Demo/tkinter/guido/tkman.py @@ -6,7 +6,7 @@ import sys import os import string import re -from Tkinter import * +from tkinter import * from ManPage import ManPage MANNDIRLIST = ['/depot/sundry/man/mann','/usr/local/man/mann'] diff --git a/Demo/tkinter/matt/00-HELLO-WORLD.py b/Demo/tkinter/matt/00-HELLO-WORLD.py index 20a205048a..3b4092a641 100644 --- a/Demo/tkinter/matt/00-HELLO-WORLD.py +++ b/Demo/tkinter/matt/00-HELLO-WORLD.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # note that there is no explicit call to start Tk. # Tkinter is smart enough to start the system if it's not already going. diff --git a/Demo/tkinter/matt/animation-simple.py b/Demo/tkinter/matt/animation-simple.py index 071bde7af9..4120d66d48 100644 --- a/Demo/tkinter/matt/animation-simple.py +++ b/Demo/tkinter/matt/animation-simple.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # This program shows how to use the "after" function to make animation. diff --git a/Demo/tkinter/matt/animation-w-velocity-ctrl.py b/Demo/tkinter/matt/animation-w-velocity-ctrl.py index 68eb1d02d8..88309cae2c 100644 --- a/Demo/tkinter/matt/animation-w-velocity-ctrl.py +++ b/Demo/tkinter/matt/animation-w-velocity-ctrl.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # this is the same as simple-demo-1.py, but uses # subclassing. diff --git a/Demo/tkinter/matt/bind-w-mult-calls-p-type.py b/Demo/tkinter/matt/bind-w-mult-calls-p-type.py index f744d26311..af0ec81df9 100644 --- a/Demo/tkinter/matt/bind-w-mult-calls-p-type.py +++ b/Demo/tkinter/matt/bind-w-mult-calls-p-type.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * import string # This program shows how to use a simple type-in box diff --git a/Demo/tkinter/matt/canvas-demo-simple.py b/Demo/tkinter/matt/canvas-demo-simple.py index b677ccdd41..7f2c17bba3 100644 --- a/Demo/tkinter/matt/canvas-demo-simple.py +++ b/Demo/tkinter/matt/canvas-demo-simple.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # this program creates a canvas and puts a single polygon on the canvas diff --git a/Demo/tkinter/matt/canvas-gridding.py b/Demo/tkinter/matt/canvas-gridding.py index 84f4ea0260..2f9d23afce 100644 --- a/Demo/tkinter/matt/canvas-gridding.py +++ b/Demo/tkinter/matt/canvas-gridding.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # this is the same as simple-demo-1.py, but uses # subclassing. diff --git a/Demo/tkinter/matt/canvas-moving-or-creating.py b/Demo/tkinter/matt/canvas-moving-or-creating.py index 5327c0827d..edd64f7945 100644 --- a/Demo/tkinter/matt/canvas-moving-or-creating.py +++ b/Demo/tkinter/matt/canvas-moving-or-creating.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # this file demonstrates a more sophisticated movement -- # move dots or create new ones if you click outside the dots diff --git a/Demo/tkinter/matt/canvas-moving-w-mouse.py b/Demo/tkinter/matt/canvas-moving-w-mouse.py index 81785d86a8..21d724f68a 100644 --- a/Demo/tkinter/matt/canvas-moving-w-mouse.py +++ b/Demo/tkinter/matt/canvas-moving-w-mouse.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # this file demonstrates the movement of a single canvas item under mouse control diff --git a/Demo/tkinter/matt/canvas-mult-item-sel.py b/Demo/tkinter/matt/canvas-mult-item-sel.py index a4f267cc13..4875b4491a 100644 --- a/Demo/tkinter/matt/canvas-mult-item-sel.py +++ b/Demo/tkinter/matt/canvas-mult-item-sel.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # allows moving dots with multiple selection. diff --git a/Demo/tkinter/matt/canvas-reading-tag-info.py b/Demo/tkinter/matt/canvas-reading-tag-info.py index 75990c9bd8..265f0a181d 100644 --- a/Demo/tkinter/matt/canvas-reading-tag-info.py +++ b/Demo/tkinter/matt/canvas-reading-tag-info.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * class Test(Frame): diff --git a/Demo/tkinter/matt/canvas-w-widget-draw-el.py b/Demo/tkinter/matt/canvas-w-widget-draw-el.py index 3cbf93720f..ca96583d64 100644 --- a/Demo/tkinter/matt/canvas-w-widget-draw-el.py +++ b/Demo/tkinter/matt/canvas-w-widget-draw-el.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # this file demonstrates the creation of widgets as part of a canvas object diff --git a/Demo/tkinter/matt/canvas-with-scrollbars.py b/Demo/tkinter/matt/canvas-with-scrollbars.py index b55215d155..1c5681a644 100644 --- a/Demo/tkinter/matt/canvas-with-scrollbars.py +++ b/Demo/tkinter/matt/canvas-with-scrollbars.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # This example program creates a scroling canvas, and demonstrates # how to tie scrollbars and canvses together. The mechanism diff --git a/Demo/tkinter/matt/dialog-box.py b/Demo/tkinter/matt/dialog-box.py index 0c71c3a33d..c0b8825fa8 100644 --- a/Demo/tkinter/matt/dialog-box.py +++ b/Demo/tkinter/matt/dialog-box.py @@ -1,5 +1,5 @@ -from Tkinter import * -from Dialog import Dialog +from tkinter import * +from tkinter.dialog import Dialog # this shows how to create a new window with a button in it # that can create new windows diff --git a/Demo/tkinter/matt/entry-simple.py b/Demo/tkinter/matt/entry-simple.py index 0bf4cabac0..1f55df51db 100644 --- a/Demo/tkinter/matt/entry-simple.py +++ b/Demo/tkinter/matt/entry-simple.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * import string # This program shows how to use a simple type-in box diff --git a/Demo/tkinter/matt/entry-with-shared-variable.py b/Demo/tkinter/matt/entry-with-shared-variable.py index c7cd259865..473a596dab 100644 --- a/Demo/tkinter/matt/entry-with-shared-variable.py +++ b/Demo/tkinter/matt/entry-with-shared-variable.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * import string # This program shows how to make a typein box shadow a program variable. diff --git a/Demo/tkinter/matt/killing-window-w-wm.py b/Demo/tkinter/matt/killing-window-w-wm.py index 23ac103bda..b4034d1944 100644 --- a/Demo/tkinter/matt/killing-window-w-wm.py +++ b/Demo/tkinter/matt/killing-window-w-wm.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # This file shows how to trap the killing of a window # when the user uses window manager menus (typ. upper left hand corner diff --git a/Demo/tkinter/matt/menu-all-types-of-entries.py b/Demo/tkinter/matt/menu-all-types-of-entries.py index e4e4bfd1fa..1e3bb8c9a7 100644 --- a/Demo/tkinter/matt/menu-all-types-of-entries.py +++ b/Demo/tkinter/matt/menu-all-types-of-entries.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # some vocabulary to keep from getting confused. This terminology # is something I cooked up for this file, but follows the man pages diff --git a/Demo/tkinter/matt/menu-simple.py b/Demo/tkinter/matt/menu-simple.py index 2487561ccf..a927c50ed6 100644 --- a/Demo/tkinter/matt/menu-simple.py +++ b/Demo/tkinter/matt/menu-simple.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # some vocabulary to keep from getting confused. This terminology # is something I cooked up for this file, but follows the man pages diff --git a/Demo/tkinter/matt/not-what-you-might-think-1.py b/Demo/tkinter/matt/not-what-you-might-think-1.py index 7b20f02b37..85c65c82c1 100644 --- a/Demo/tkinter/matt/not-what-you-might-think-1.py +++ b/Demo/tkinter/matt/not-what-you-might-think-1.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * class Test(Frame): diff --git a/Demo/tkinter/matt/not-what-you-might-think-2.py b/Demo/tkinter/matt/not-what-you-might-think-2.py index 9ee197cf98..4512063672 100644 --- a/Demo/tkinter/matt/not-what-you-might-think-2.py +++ b/Demo/tkinter/matt/not-what-you-might-think-2.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * class Test(Frame): diff --git a/Demo/tkinter/matt/packer-and-placer-together.py b/Demo/tkinter/matt/packer-and-placer-together.py index 84d3ee09d8..3cf6c45960 100644 --- a/Demo/tkinter/matt/packer-and-placer-together.py +++ b/Demo/tkinter/matt/packer-and-placer-together.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # This is a program that tests the placer geom manager in conjunction with # the packer. The background (green) is packed, while the widget inside is placed diff --git a/Demo/tkinter/matt/packer-simple.py b/Demo/tkinter/matt/packer-simple.py index 1a505dd134..64f61d5fff 100644 --- a/Demo/tkinter/matt/packer-simple.py +++ b/Demo/tkinter/matt/packer-simple.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * class Test(Frame): diff --git a/Demo/tkinter/matt/placer-simple.py b/Demo/tkinter/matt/placer-simple.py index 992a8fc0d9..6be0de9ffe 100644 --- a/Demo/tkinter/matt/placer-simple.py +++ b/Demo/tkinter/matt/placer-simple.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # This is a program that tests the placer geom manager diff --git a/Demo/tkinter/matt/pong-demo-1.py b/Demo/tkinter/matt/pong-demo-1.py index 7fcf800b68..09f9f2e2ee 100644 --- a/Demo/tkinter/matt/pong-demo-1.py +++ b/Demo/tkinter/matt/pong-demo-1.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * import string diff --git a/Demo/tkinter/matt/printing-coords-of-items.py b/Demo/tkinter/matt/printing-coords-of-items.py index c74c1c3e7b..26a4649f73 100644 --- a/Demo/tkinter/matt/printing-coords-of-items.py +++ b/Demo/tkinter/matt/printing-coords-of-items.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # this file demonstrates the creation of widgets as part of a canvas object diff --git a/Demo/tkinter/matt/radiobutton-simple.py b/Demo/tkinter/matt/radiobutton-simple.py index eeddb23f15..a2719b8d74 100644 --- a/Demo/tkinter/matt/radiobutton-simple.py +++ b/Demo/tkinter/matt/radiobutton-simple.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # This is a demo program that shows how to # create radio buttons and how to get other widgets to diff --git a/Demo/tkinter/matt/rubber-band-box-demo-1.py b/Demo/tkinter/matt/rubber-band-box-demo-1.py index 66b8f8bb2e..48526d87fe 100644 --- a/Demo/tkinter/matt/rubber-band-box-demo-1.py +++ b/Demo/tkinter/matt/rubber-band-box-demo-1.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * class Test(Frame): def printit(self): diff --git a/Demo/tkinter/matt/rubber-line-demo-1.py b/Demo/tkinter/matt/rubber-line-demo-1.py index b1c8e78c60..cfc488227b 100644 --- a/Demo/tkinter/matt/rubber-line-demo-1.py +++ b/Demo/tkinter/matt/rubber-line-demo-1.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * class Test(Frame): def printit(self): diff --git a/Demo/tkinter/matt/slider-demo-1.py b/Demo/tkinter/matt/slider-demo-1.py index 5662db955c..687f8a3472 100644 --- a/Demo/tkinter/matt/slider-demo-1.py +++ b/Demo/tkinter/matt/slider-demo-1.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # shows how to make a slider, set and get its value under program control diff --git a/Demo/tkinter/matt/subclass-existing-widgets.py b/Demo/tkinter/matt/subclass-existing-widgets.py index fc048596a7..ce97f35f2d 100644 --- a/Demo/tkinter/matt/subclass-existing-widgets.py +++ b/Demo/tkinter/matt/subclass-existing-widgets.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # This is a program that makes a simple two button application diff --git a/Demo/tkinter/matt/two-radio-groups.py b/Demo/tkinter/matt/two-radio-groups.py index 52513bace7..38b61b117c 100644 --- a/Demo/tkinter/matt/two-radio-groups.py +++ b/Demo/tkinter/matt/two-radio-groups.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # The way to think about this is that each radio button menu # controls a different variable -- clicking on one of the diff --git a/Demo/tkinter/matt/window-creation-more.py b/Demo/tkinter/matt/window-creation-more.py index 3a4ce195f6..32c8b7082a 100644 --- a/Demo/tkinter/matt/window-creation-more.py +++ b/Demo/tkinter/matt/window-creation-more.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # this shows how to create a new window with a button in it # that can create new windows diff --git a/Demo/tkinter/matt/window-creation-simple.py b/Demo/tkinter/matt/window-creation-simple.py index fdf1dcc4e4..f5e6230d84 100644 --- a/Demo/tkinter/matt/window-creation-simple.py +++ b/Demo/tkinter/matt/window-creation-simple.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * # this shows how to spawn off new windows at a button press diff --git a/Demo/tkinter/matt/window-creation-w-location.py b/Demo/tkinter/matt/window-creation-w-location.py index af6f876699..9f82367ffa 100644 --- a/Demo/tkinter/matt/window-creation-w-location.py +++ b/Demo/tkinter/matt/window-creation-w-location.py @@ -1,4 +1,4 @@ -from Tkinter import * +from tkinter import * import sys ##sys.path.append("/users/mjc4y/projects/python/tkinter/utils") |
