Prev: How to align elements and how to en-/dis-able them conditionally?
Next: interpreter startup in a new thread
From: wexfordpress on 3 Feb 2010 14:47 Here is the code: --------------------------------------- button .b -text "Hello world" -command exit pack .b ------------------------------------ If called as "wish hello.tcl" it executes as expected. if called as "expect hello.tcl" it errors off on the button command. Fair enough. if called as "expectk hello.tcl" it displays the button but the button is inactive. My version of expectk is 5.44.1.11 and the platform is Slackware Linux 13 with xfce. John Culleton
From: Donald Arseneau on 3 Feb 2010 16:07 > if called as "expectk hello.tcl" > it displays the button but the button is inactive. I believe only wish enters the event loop by itself. Try adding vwait forever. Donald Arseneau
From: wexfordpress on 3 Feb 2010 17:09 On Feb 3, 4:07 pm, Donald Arseneau <a...(a)triumf.ca> wrote: > > if called as "expectk hello.tcl" > > it displays the button but the button is inactive. > > I believe only wish enters the event loop by itself. > Try adding vwait forever. > > Donald Arseneau That is a reasonable expectation. However the example programs that come with expectk don't use vwait. And they don't work on my system either. I tried adding vwait at the beginning and later at the end of the process. No joy. It could be a version mismatch. I run tcl and tk at the latest stable level, 8.5.8. Expect is at 5.44.1.11. I tried to download and compile the latest version of expect but it errors off on the compile. It may be that expect and expectk have been left by the side of the road in the development process. I'll try contacting Liebes directly. Thanks for trying. John Culleton
From: wexfordpress on 3 Feb 2010 17:54 On Feb 3, 5:09 pm, wexfordpress <j...(a)wexfordpress.com> wrote: > On Feb 3, 4:07 pm, Donald Arseneau <a...(a)triumf.ca> wrote: > > > > if called as "expectk hello.tcl" > > > it displays the button but the button is inactive. > > > I believe only wish enters the event loop by itself. > > Try adding vwait forever. > > > Donald Arseneau Further on the above. When I try to compile the latest expect it looks for a subdirectory called "generic" and that does not appear in the directory tree of any of the versions I have found thus far. So I definitely have a version mismatch problem. I will try to mount an earlier version of Slackware, wipe out my current files and reinstall tcl and tk etc. Maybe that will work. John Culleton
From: wexfordpress on 3 Feb 2010 19:18 On Feb 3, 5:09 pm, wexfordpress <j...(a)wexfordpress.com> wrote: > On Feb 3, 4:07 pm, Donald Arseneau <a...(a)triumf.ca> wrote: > > > > if called as "expectk hello.tcl" > > > it displays the button but the button is inactive. > > > I believe only wish enters the event loop by itself. > > Try adding vwait forever. > > > Donald Arseneau > > That is a reasonable expectation. However the example programs that > come with expectk > don't use vwait. And they don't work on my system either. > > I tried adding vwait at the beginning and later at the end of the > process. > No joy. > > It could be a version mismatch. I run tcl and tk at the latest stable > level, 8.5.8. > Expect is at 5.44.1.11. I tried to download and compile the latest > version of expect > but it errors off on the compile. It may be that expect and expectk > have been left > by the side of the road in the development process. I'll try > contacting Liebes directly. > > Thanks for trying. > > John Culleton I fixed the problem by going back to Slackware 12.1 and installing the earlier packages. I'll make this known on the Slackware group. John C.
|
Next
|
Last
Pages: 1 2 Prev: How to align elements and how to en-/dis-able them conditionally? Next: interpreter startup in a new thread |