[Python-checkins] python/dist/src/Doc/lib tkinter.tex,1.10.6.6,1.10.6.7

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Tue, 20 May 2003 08:20:35 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv32399/lib

Modified Files:
      Tag: release22-maint
	tkinter.tex 
Log Message:
Remove unused line numbers from example code.
Line numbering of examples is not used elsewhere.


Index: tkinter.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/tkinter.tex,v
retrieving revision 1.10.6.6
retrieving revision 1.10.6.7
diff -C2 -d -r1.10.6.6 -r1.10.6.7
*** tkinter.tex	3 Nov 2002 13:13:54 -0000	1.10.6.6
--- tkinter.tex	20 May 2003 15:20:33 -0000	1.10.6.7
***************
*** 221,252 ****
  
  \begin{verbatim}
! from Tkinter import *                                                    1
!                                                                          2
! class Application(Frame):                                                3
!     def say_hi(self):                                                    4
!         print "hi there, everyone!"                                      5
!                                                                          6
!     def createWidgets(self):                                             7
!         self.QUIT = Button(self)                                         8
!         self.QUIT["text"] = "QUIT"                                       9
!         self.QUIT["fg"]   = "red"                                       10
!         self.QUIT["command"] =  self.quit                               11
!                                                                         12
!         self.QUIT.pack({"side": "left"})                                13
!                                                                         14
!         self.hi_there = Button(self)                                    15
!         self.hi_there["text"] = "Hello",                                16
!         self.hi_there["command"] = self.say_hi                          17
!                                                                         18
!         self.hi_there.pack({"side": "left"})                            19
!                                                                         20
!                                                                         21
!     def __init__(self, master=None):                                    22
!         Frame.__init__(self, master)                                    23
!         self.pack()                                                     24
!         self.createWidgets()                                            25
!                                                                         26
! app = Application()                                                     27
! app.mainloop()                                                          28
  \end{verbatim}
  
--- 221,251 ----
  
  \begin{verbatim}
! from Tkinter import *
! 
! class Application(Frame):
!     def say_hi(self):
!         print "hi there, everyone!"
! 
!     def createWidgets(self):
!         self.QUIT = Button(self)
!         self.QUIT["text"] = "QUIT"
!         self.QUIT["fg"]   = "red"
!         self.QUIT["command"] =  self.quit
! 
!         self.QUIT.pack({"side": "left"})
! 
!         self.hi_there = Button(self)
!         self.hi_there["text"] = "Hello",
!         self.hi_there["command"] = self.say_hi
! 
!         self.hi_there.pack({"side": "left"})
! 
!     def __init__(self, master=None):
!         Frame.__init__(self, master)
!         self.pack()
!         self.createWidgets()
! 
! app = Application()
! app.mainloop()
  \end{verbatim}