Take Command v11 Public Beta Build 27 Uploaded

rconn

Administrator
Staff member
May 14, 2008
12,344
149
I've uploaded build 27 to the ftp beta and web updater sites. This should address all of the reported bugs to date.

Note that the TCTOOLBAR input files have changed to match the [TOOLBARn] sections in TCMD.INI, so if you have existing files you're reading with TCTOOLBAR /R you will have to edit them to include the section name.

Also, the /P option has been removed from ZIP.
 
May 20, 2008
473
2
I retested the Tk behavior.

Here is my Test.tcl file:
Code:
wm title . "Test"
label .lbl -text "Test text"
pack .lbl -ipadx 80 -ipady 20
Code:
C:\Tcl\demos\Tk8.5>echo %@tcl[source test.tcl]
source test.tcl
It doesn't run the Tk script like it does the Tcl script.

Code:
C:\Tcl\demos\Tk8.5>test.tcl
Tcl: window name "lbl" already exists in parent
It seems the prior source ran part of the script, but just didn't display it. If I close and restart TCMD without running the first echo %@tcl line as above, I get this behavior.

Code:
C:\Tcl\demos\Tk8.5>test.tcl
That ran the Tk script and displayed the window; it didn't need to run wish as before. I then closed the window.

Code:
C:\Tcl\demos\Tk8.5>test.tcl
Tcl: can't invoke "wm" command:  application has been destroyed
Apparently, it doesn't reinit Tk if windows get closed.

Tim
 
May 20, 2008
473
2
Re: Take Command v11 Public Beta Build 27 Uploaded

Sorry. Just responding to the "This should address all of the
reported bugs to date." that didn't exclude Tk this time. I will wait
for you to explicitly say Tk is fixed.

Tim

On Mon, Oct 19, 2009 at 3:48 PM, rconn <> wrote:

> ---Quote (Originally by TimButterfield)---
> I retested the Tk behavior.
> ---End Quote---
>
> The Tk support is not yet enabled. *I will let you know when it's working.
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Rex Conn
> JP Software
 
May 20, 2008
473
2
Re: Take Command v11 Public Beta Build 27 Uploaded

On Mon, Oct 19, 2009 at 7:35 PM, rconn <> wrote:

> ---Quote---
>> Sorry. *Just responding to the "This should address all of the
>> reported bugs to date." that didn't exclude Tk this time. *I will wait
>> for you to explicitly say Tk is fixed.
> ---End Quote---
> Tk is currently an unimplemented feature, not a bug.

Understood. As an FYI, if it remains that way for the released
version of v11, the reference to 'Tcl/Tk' in the documentation will be
in error.

Tim
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
Re: Take Command v11 Public Beta Build 27 Uploaded

> ---Quote---
> > Tk is currently an unimplemented feature, not a bug.
> ---End Quote---
> Understood. As an FYI, if it remains that way for the released
> version of v11, the reference to 'Tcl/Tk' in the documentation will be
> in error.

If I can't work around the Tk bug, I will remove both Tcl and Tk from v11
before release.

Rex Conn
JP Software
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
> Here is my Test.tcl file:
>
> Code:
> ---------
> wm title . "Test"
> label .lbl -text "Test text"
> pack .lbl -ipadx 80 -ipady 20
> ---------
>
> Code:
> ---------
> C:\Tcl\demos\Tk8.5>echo %@tcl[source test.tcl]
> source test.tcl
> ---------
> It doesn't run the Tk script like it does the Tcl script.

Why are you trying to run a script via the @tcl var function? The @tcl
function is intended to execute a single Tcl / tk statement, not a script.
Thus, it has no event loop, and Tk scripts will never (ever) work.


> Code:
> ---------
> C:\Tcl\demos\Tk8.5>test.tcl
> Tcl: window name "lbl" already exists in parent
> ---------

WAD, and doing exactly what you told it to (though admittedly not what you
expected it to do). When you close the Tk window, you're destroying the "."
root Tk window, which causes Tk to be destroyed. (This is special Tk
behavior with the root window.) There's two choices here: either I have to
make the interpreter non-persistent (so you'll lose everything between
script invocations), or you have to use something like "wm withdraw ." to
hide the root and then create a new one.


> Apparently, it doesn't reinit Tk if windows get closed.

How would it know?

Rex Conn
JP Software
 
May 20, 2008
473
2
Why are you trying to run a script via the @tcl var function? The @tcl function is intended to execute a single Tcl / tk statement, not a script. Thus, it has no event loop, and Tk scripts will never (ever) work.
I tried that because of the documentation. It says it supported Tcl/Tk. Tcl is the language. Tk is the Tk GUI Toolkit. Since Tk was claimed to be supported, I tried it.

WAD, and doing exactly what you told it to (though admittedly not what you
expected it to do). When you close the Tk window, you're destroying the "."
root Tk window, which causes Tk to be destroyed. (This is special Tk
behavior with the root window.) There's two choices here: either I have to
make the interpreter non-persistent (so you'll lose everything between
script invocations), or you have to use something like "wm withdraw ." to
hide the root and then create a new one.

How would it know?

Rex Conn
JP Software
That was one of the reasons behind my prior suggestion of an @tk function, to initialize the root Tk window and event loop as needed. I wasn't sure what to expect as the documentation provides no examples. I was just trying things to see what would happen, trying to guess and fill in the blanks about what may or may not be supported. The parameter I passed was a valid (though apparently unsupported) expression. If Tk scripts 'will never (ever) work,' this is a moot point and the documentation is in error.

Tim
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
> That was one of the reasons behind my prior suggestion of an @tk
> function, to initialize the root Tk window and event loop as needed. I
> wasn't sure what to expect as the documentation provides no examples.
> I was just trying things to see what would happen, trying to guess and
> fill in the blanks about what may or may not be supported. The
> parameter I passed was a valid (though apparently unsupported)
> expression. If Tk scripts 'will never (ever) work,' this is a moot
> point and the documentation is in error.

Tk scripts *do* work (in build 28); they just don't work in the @TCL
function. You can run them from the command line, just as you do a Tcl
script. The documentation never says anything about running scripts in
@TCL, only expressions.

(You wouldn't really want a modal variable function that locked up
everything else in TCMD while a Tk script executed, would you?)

Rex Conn
JP Software
 
May 20, 2008
473
2
Tk scripts *do* work (in build 28); they just don't work in the @TCL
function. You can run them from the command line, just as you do a Tcl
script. The documentation never says anything about running scripts in
@TCL, only expressions.
The documentation said @tcl supported Tcl/tk expressions. If not a script, what Tk expression is supported by @tcl? Perhaps the documentation should say it supports 'Tcl expression' and leave the Tk part out of it.

(You wouldn't really want a modal variable function that locked up
everything else in TCMD while a Tk script executed, would you?)
Given the 'documented' support for Tk, I would have expected 'set x=%@tcl[source test.tcl]' to act similarly to 'set x=%@execstr[wish test.tcl]' both of which would lock until the app exited. The expectation was not without precedent. I'll check again in 28.

Tim
 
Similar threads
Thread starter Title Forum Replies Date
rconn Take Command v11 Public Beta Build 26 Uploaded Support 8
rconn Take Command v11 Public Beta Build 25 Uploaded Support 6
rconn Take Command v11 Public Beta Build 24 Uploaded Support 10
rconn Take Command v11 Public Beta Build 23 Uploaded Support 2
rconn Take Command v11 Public Beta Build 22 Uploaded Support 23
rconn Take Command v11 Public Beta Available Support 3
rconn Take Command v11.0.31 uploaded Support 9
rconn Take Command v11 RC2 (build 29) Uploaded Support 1
rconn Take Command v11 RC1 (build 28) Uploaded Support 10
Dmitry L. Kobyakov How to? How to remove the record of the old version of the Take Command? Support 5
D Can alias pass parameters to for command? Support 3
samintz How to? Search for %(command) in Help? Support 1
T VIEW only works from command line Support 14
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
J Take command does not start on Windows 10 Support 3
vefatica `Back quotes` - command line vs. batch file Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 8
Phileosophos Command-line Editing Shortkeys That Fail Support 6
fpefpe How to? free (internal) command Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
T How to? retain command history across reboot? Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
GermanDirk How to? EVENTLOG Command with simple User Rights not functional Support 4
Jay Sage Take Command Is Too Fast! Support 4
Jay Sage Comparison of IF with Command Group and IFF Support 6
D Open Windows 10 Photos app from command line Support 11
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
U Can not get/start Take Command gui Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
S Increasing Font Point Size in Command Tabs Support 2
mfarah Fixed The DATE command produces the wrong error message. Support 1
vefatica Command name mix-up Support 3
FreezerBurnt "Missing SETLOCAL" when initializing Visual Studio Command Prompt. Support 9
E How to? Closing desktop created by DESKTOP command Support 10
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
K Take Command fox XP? Support 7
Joe Caverly Documentation Replace internal command with LIBRARY command Support 0
fpefpe How to? command echo in title line/bar Support 2
U Command help on file names Support 5
vefatica Command line DO with no closing parenthesis? Support 9
vefatica Command history search is off Support 7
H How to? How can I say "if the command separator is not ~ then setdos /C~" Support 8
N Command execution slows down in TCC Prompt after a while Support 6
R Long commands retrieved from command history have blank line when wrapped Support 20

Similar threads