home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / tcl / 1748 < prev    next >
Encoding:
Text File  |  1992-11-07  |  1.7 KB  |  39 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!europa.asd.contel.com!emory!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!karl
  3. From: karl@NeoSoft.com (Karl Lehenbauer)
  4. Subject: Re: Sequential Execution
  5. Organization: NeoSoft Communications Services -- (713) 684-5900
  6. Date: Fri, 6 Nov 1992 06:22:04 GMT
  7. Message-ID: <BxA70u.4Eu@NeoSoft.com>
  8. Keywords: TCL, TK, Sequential, Window
  9. References: <1992Nov04.041453.413@bnr.ca>
  10. Lines: 27
  11.  
  12. In article <1992Nov04.041453.413@bnr.ca> tdoan@bnr.ca (Tuan Doan) writes:
  13. >   Is there a way to restrict the TCL/TK program to execute sequentially.  In
  14. >another word, I do not want TCL/TK to execute the next 'widget' statement until
  15. >the previous one is finished.  Something like a 'wait' statement.  Example,
  16. >1.  <create dialog window that required user to select choice>
  17. >2.  <create menu with choice selected by user>
  18. >(2) should be executed only if (1) is completed.
  19.  
  20. Well, most of the time you don't want to force a sequence on users and
  21. grasping this and programming for it is central to the windowing paradigm.
  22.  
  23. There are cases, though, like for dialogs and stuff like that, where if
  24. you don't have a way to do modal dialogs, you end up with a lot more
  25. callbacks and a lot more procedures called to get something done.
  26.  
  27. Tk provides the "tkwait" and "grab" commands, which should enable you
  28. to do what you want.
  29.  
  30. >Also what is the equivalent of the append ( >> operator) command using TCL?
  31.  
  32. Not sure that I understand you, but you can open files for append using the
  33. "a" option to open.  You can append elements to lists with the lappend
  34. command.
  35. -- 
  36. -- Email info@NeoSoft.com for info on getting interactive Internet access.
  37. "It took no computation to dance to the rock 'n roll station."
  38. -- VU
  39.