Remove unused line numbers from example code.

Line numbering of examples is not used elsewhere.
This commit is contained in:
Fred Drake 2003-05-20 15:21:08 +00:00
parent 6695ba89de
commit e5a55519a8
1 changed files with 27 additions and 28 deletions

View File

@ -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}