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