Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
9dcc9f77
Kaydet (Commit)
9dcc9f77
authored
Eki 19, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
No longer needed since we have nice, contributed navigation buttons.
üst
a5de730d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
35 deletions
+0
-35
tkbuttons.py
Doc/tools/tkbuttons.py
+0
-35
No files found.
Doc/tools/tkbuttons.py
deleted
100644 → 0
Dosyayı görüntüle @
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