diff options
Diffstat (limited to 'Demo/tkinter/guido')
26 files changed, 31 insertions, 31 deletions
diff --git a/Demo/tkinter/guido/AttrDialog.py b/Demo/tkinter/guido/AttrDialog.py index 921c105..5508e3b 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 1266f1c..a9309a3 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 7494425..11701cd 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 c1d56ef..fffcbc5 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 8007f14..7ab3e67 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 281a645..dc1d43a 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 74ed76f..aeb0eb1 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 426eca4..1832ba4 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 fdc558f..e3bf468 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 58ba1d1..a29b1d7 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 358a7ec..f10fb7a 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 d3dba45..a168831 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 d6efed0..276858a 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 36b479d..36caba6 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 d28ce49..625d20e 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 88b0b89..45c384e 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 57bf13c..51c4e64 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 7365fa6..1e72aa5 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 7b2e814..65f2353 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 c177c72..7b3f700 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 a521c66..b2a2a66 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 27dc9f0..0c71fc9 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 d957907..6a7aefc 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 b9d82ab..0dd9f95 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 3b58f7c..3f43925 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 c84d889..52b6d03 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'] |