[Python-checkins] CVS: python/dist/src/Demo/tix tixwidgets.py,1.5,1.6

Martin v. L?wis loewis@users.sourceforge.net
Sun, 17 Mar 2002 10:19:15 -0800


Update of /cvsroot/python/python/dist/src/Demo/tix
In directory usw-pr-cvs1:/tmp/cvs-serv20863

Modified Files:
	tixwidgets.py 
Log Message:
Patch #485959: Various changes to Tix demos.


Index: tixwidgets.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Demo/tix/tixwidgets.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** tixwidgets.py	1 Mar 2002 13:07:34 -0000	1.5
--- tixwidgets.py	17 Mar 2002 18:19:13 -0000	1.6
***************
*** 155,159 ****
                  try: tkMessageBox.showerror ('Error', text)
                  except: pass
!                 tkinspect_quit (1)
  
      def destroy (self):
--- 155,160 ----
                  try: tkMessageBox.showerror ('Error', text)
                  except: pass
!                 self.exit = 1
!                 raise SystemExit, 1
  
      def destroy (self):
***************
*** 421,427 ****
  
  def MkFileBox(w):
      msg = Tix.Message(w, 
  		      relief=Tix.FLAT, width=240, anchor=Tix.N,
! 		      text='The TixFileSelectBox is a Motif-style box with various enhancements. For example, you can adjust the size of the two listboxes and your past selections are recorded.')
      box = Tix.FileSelectBox(w)
      msg.pack(side=Tix.TOP, expand=1, fill=Tix.BOTH, padx=3, pady=3)
--- 422,432 ----
  
  def MkFileBox(w):
+     """The FileSelectBox is a Motif-style box with various enhancements.
+     For example, you can adjust the size of the two listboxes
+     and your past selections are recorded.
+     """
      msg = Tix.Message(w, 
  		      relief=Tix.FLAT, width=240, anchor=Tix.N,
! 		      text='The Tix FileSelectBox is a Motif-style box with various enhancements. For example, you can adjust the size of the two listboxes and your past selections are recorded.')
      box = Tix.FileSelectBox(w)
      msg.pack(side=Tix.TOP, expand=1, fill=Tix.BOTH, padx=3, pady=3)