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
e5a55519
Kaydet (Commit)
e5a55519
authored
May 20, 2003
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unused line numbers from example code.
Line numbering of examples is not used elsewhere.
üst
6695ba89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
28 deletions
+27
-28
tkinter.tex
Doc/lib/tkinter.tex
+27
-28
No files found.
Doc/lib/tkinter.tex
Dosyayı görüntüle @
e5a55519
...
@@ -220,34 +220,33 @@ place to go when nothing else makes sense.
...
@@ -220,34 +220,33 @@ place to go when nothing else makes sense.
\begin{verbatim}
\begin{verbatim}
from Tkinter import * 1
from Tkinter import *
2
class Application(Frame): 3
class Application(Frame):
def say
_
hi(self): 4
def say
_
hi(self):
print "hi there, everyone!" 5
print "hi there, everyone!"
6
def createWidgets(self): 7
def createWidgets(self):
self.QUIT = Button(self) 8
self.QUIT = Button(self)
self.QUIT["text"] = "QUIT" 9
self.QUIT["text"] = "QUIT"
self.QUIT["fg"] = "red" 10
self.QUIT["fg"] = "red"
self.QUIT["command"] = self.quit 11
self.QUIT["command"] = self.quit
12
self.QUIT.pack(
{
"side": "left"
}
) 13
self.QUIT.pack(
{
"side": "left"
}
)
14
self.hi
_
there = Button(self) 15
self.hi
_
there = Button(self)
self.hi
_
there["text"] = "Hello", 16
self.hi
_
there["text"] = "Hello",
self.hi
_
there["command"] = self.say
_
hi 17
self.hi
_
there["command"] = self.say
_
hi
18
self.hi
_
there.pack(
{
"side": "left"
}
) 19
self.hi
_
there.pack(
{
"side": "left"
}
)
20
21
def
__
init
__
(self, master=None):
def
__
init
__
(self, master=None): 22
Frame.
__
init
__
(self, master)
Frame.
__
init
__
(self, master) 23
self.pack()
self.pack() 24
self.createWidgets()
self.createWidgets() 25
26
app = Application()
app = Application() 27
app.mainloop()
app.mainloop() 28
\end{verbatim}
\end{verbatim}
...
...
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