Home > Archive > Tcl > December 2007 > Table for text-area
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]
| Author |
Table for text-area
|
|
| Esa Heikkinen 2007-12-22, 8:12 am |
|
Hi
I would want to make a table for text-area (text-widget in Tk8.4), which
includes cells in fixed places. The cell includes for example numerical
data, which can change.
How can i build TK-applcation to doing that ?
PS. There are only insert-command to put data to text-widget, but not
"update"- or "remove"-command ?
---
Esa
| |
| Arjen Markus 2007-12-22, 7:16 pm |
| On 22 dec, 11:35, Esa Heikkinen <esa.heikki...@tut.fi> wrote:
> Hi
>
> I would want to make a table for text-area (text-widget in Tk8.4), which
> includes cells in fixed places. The cell includes for example numerical
> data, which can change.
>
> How can i build TK-applcation to doing that ?
>
> PS. There are only insert-command to put data to text-widget, but not
> "update"- or "remove"-command ?
>
> ---
> Esa
Have a look at either Tktable or at Tablelist (in Tklib) - the latter
is based on the text widget. Either will almost certainly do what you
want.
You can delete text from the text widget:
..t delete $first $last
but to update the text, you will have to remove the old first and then
insert
the new text.
Regards,
Arjen
| |
| Esa Heikkinen 2007-12-22, 7:16 pm |
| Arjen Markus kirjoitti:
> On 22 dec, 11:35, Esa Heikkinen <esa.heikki...@tut.fi> wrote:
>
> Have a look at either Tktable or at Tablelist (in Tklib) - the latter
> is based on the text widget. Either will almost certainly do what you
> want.
>
> You can delete text from the text widget:
>
> .t delete $first $last
>
> but to update the text, you will have to remove the old first and then
> insert
> the new text.
>
> Regards,
>
> Arjen
Ok. Thanks.
Are tags only for attributes ot text, but not for text ?
I think tags may do that also..
---
Esa
| |
| Bryan Oakley 2007-12-22, 7:16 pm |
| Arjen Markus wrote:
> but to update the text, you will have to remove the old first and then
> insert
> the new text.
With 8.5 there is a "replace" command which combines a delete with an
insert in one command.
|
|
|
|
|