Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9dcc9f77
Commit
9dcc9f77
authored
Oct 19, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No longer needed since we have nice, contributed navigation buttons.
parent
a5de730d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
35 deletions
+0
-35
Doc/tools/tkbuttons.py
Doc/tools/tkbuttons.py
+0
-35
No files found.
Doc/tools/tkbuttons.py
deleted
100644 → 0
View file @
a5de730d
#! /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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment