diff options
author | Fred Drake <fdrake@acm.org> | 1998-10-19 21:40:45 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-10-19 21:40:45 (GMT) |
commit | 9dcc9f77643d98f0b9e5580f45daf2dbe458baac (patch) | |
tree | 7b8027da0c443480d90bd8b8d48783939ef74d48 /Doc | |
parent | a5de730d2df6f842e6f1b498411224662d1e8638 (diff) | |
download | cpython-9dcc9f77643d98f0b9e5580f45daf2dbe458baac.zip cpython-9dcc9f77643d98f0b9e5580f45daf2dbe458baac.tar.gz cpython-9dcc9f77643d98f0b9e5580f45daf2dbe458baac.tar.bz2 |
No longer needed since we have nice, contributed navigation buttons.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tools/tkbuttons.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/Doc/tools/tkbuttons.py b/Doc/tools/tkbuttons.py deleted file mode 100644 index 70e5b4d..0000000 --- a/Doc/tools/tkbuttons.py +++ /dev/null @@ -1,35 +0,0 @@ -#! /usr/bin/env python - -"""Script to create a window with a bunch of buttons. - -Once the window with the buttons is displayed on-screen, capture the image -and make a copy for each GIF image. Use xv or similar to crop individual -buttons & giftrans to make them transparent. xv will tell you the #value -of the background if you press button-2 over a background pixel; that should -be passed as a parameter to the -t argument of giftrans. -""" -__version__ = '$Revision$' - - -import sys -import Tkinter -Tk = Tkinter - - -def add_button(w, text): - b = Tk.Button(w, text=text, - font="-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*") - b.pack(pady=5, fill=Tk.X) - -def main(): - tk = Tk.Tk() - w = Tk.Toplevel() - w.protocol("WM_DELETE_WINDOW", tk.quit) - tk.withdraw() - for word in sys.argv[1:]: - add_button(w, word) - w.mainloop() - - -if __name__ == "__main__": - main() |