Home > Archive > Tcl > June 2005 > tablelist bodytag
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Timm Reasbeck 2005-06-03, 3:58 am |
|
tablelist bodytag command returns malformed value.
instead of .tbl.body get body.tbl ( no leading "." and reverse order )
Paste from tkcon on Win98, tcl/tk 8.4.9, tablelist 3.8
(DEV) 52 % puts $tablelist::W
..tbl
(DEV) 53 % .tbl bodytag
body.tbl
(DEV) 54 % .tbl bodypath
..tbl.body
(DEV) 55 % tablelist::getTablelistPath .tbl.body
..tbl
(DEV) 56 % tablelist::getTablelistPath [.tbl bodytag]
bad window path name "body"
(DEV) 57 % tablelist::getTablelistPath [.tbl bodypath]
..tbl
This popped up as I tried to work out binding <Return> to the existing
spacebar action. Can't make it work. I am setting focus to tablelist
widget, don't understand what I am missing.
Help greatly appreciated !
| |
| Roy Terry 2005-06-03, 3:58 am |
| "Timm Reasbeck" <timmr@atlanticbb.net> wrote in message
news:87sm009nfl.fsf@elstar.ursus.kosmos...
>
> tablelist bodytag command returns malformed value.
> instead of .tbl.body get body.tbl ( no leading "." and reverse order )
bodytag would not be the name of the widget. it would be a
a text widget tag name and would only be useful
for tag operations on that text widget.
> Paste from tkcon on Win98, tcl/tk 8.4.9, tablelist 3.8
>
> (DEV) 52 % puts $tablelist::W
> .tbl
> (DEV) 53 % .tbl bodytag
> body.tbl
> (DEV) 54 % .tbl bodypath
> .tbl.body
> (DEV) 55 % tablelist::getTablelistPath .tbl.body
> .tbl
> (DEV) 56 % tablelist::getTablelistPath [.tbl bodytag]
> bad window path name "body"
> (DEV) 57 % tablelist::getTablelistPath [.tbl bodypath]
> .tbl
>
> This popped up as I tried to work out binding <Return> to the existing
> spacebar action. Can't make it work. I am setting focus to tablelist
> widget, don't understand what I am missing.
Better to post the code your working on for the
binding change. And if you are adding onto
bindings your script must begin with '+'.
Roy
>
> Help greatly appreciated !
| |
| Csaba Nemethi 2005-06-03, 8:58 pm |
| Timm Reasbeck wrote:
> tablelist bodytag command returns malformed value.
> instead of .tbl.body get body.tbl ( no leading "." and reverse order )
> Paste from tkcon on Win98, tcl/tk 8.4.9, tablelist 3.8
>
> (DEV) 52 % puts $tablelist::W
> ..tbl
> (DEV) 53 % .tbl bodytag
> body.tbl
> (DEV) 54 % .tbl bodypath
> ..tbl.body
> (DEV) 55 % tablelist::getTablelistPath .tbl.body
> ..tbl
> (DEV) 56 % tablelist::getTablelistPath [.tbl bodytag]
> bad window path name "body"
> (DEV) 57 % tablelist::getTablelistPath [.tbl bodypath]
> ..tbl
>
> This popped up as I tried to work out binding <Return> to the existing
> spacebar action. Can't make it work. I am setting focus to tablelist
> widget, don't understand what I am missing.
>
> Help greatly appreciated !
The tablelist "bodytag" command returns the name of a binding tag, which
is not identical to the widget name returned by "bodypath". This is why
your command #56 above fails (see the reference pages
"tablelistWidget.html" and "tablelistBinding.html" for details on the
helper command "tablelist::getTablelistPath").
Are you sure you have pasted everything correctly from tkcon? I can't
imagine any situation where one of the commands #52, #54, #55, #57 would
return the string "..tbl" (they return the widget name ".tbl").
Best regards,
Csaba
--
Csaba Nemethi http://www.nemethi.de mailto:csaba.nemethi@t-online.de
|
|
|
|
|