Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^6: Extensibility of Tk::TableMatrix

by elef (Friar)
on Feb 08, 2011 at 21:11 UTC ( #887053=note: print w/replies, xml ) Need Help??

in reply to Re^5: Extensibility of Tk::TableMatrix
in thread Extensibility of Tk::TableMatrix

just looping over a list

I got that (eventually, after posting the question), but I still don't see what it would do. Entering the text into cells would be my guess, but the structure of that command makes no sense to me at all. I guess I will look into the widget's documentation if you think the split/merge features can be coded up with tablelist without devoting the rest of my life to the task.
Is there any TCL::Tk tutorial you can recommend? Some tablelist sample code would be nice as well.

Replies are listed 'Best First'.
Re^7: Extensibility of Tk::TableMatrix
by vkon (Curate) on Feb 08, 2011 at 21:45 UTC
    this chunk of code:
    $w_t->insert('end', ["row $hh;", "$hh bla bla"]);
    will insert at index 'end' a row into tablelist, values are "row $hh;" and "$hh bla bla" into each of 2 cells appropriately

    this comes into play after seeing sample code at

    .t insert end [list "first row" "another value"] .t insert end [list "another row" "bla bla"]
    Also, Tkx is another way of doing tcl/tk from perl, and for both of these there is a mailing list, which will help you set up and use these approaches


      insert at index 'end' a row into tablelist, values are "row $hh;" and "$hh bla bla" into each of 2 cells appropriately

      Oh, ok. If it was done with a for loop and an array for each column, with $w_t->insert('end', ["$col_a[$i];", "$col_b[$i]"]);, then it would have been clear from the start.
      Anyway, thanks for the help so far. I'll look into tablelist and Tcl/Tk when I'm a bit less busy in a few days' time and come back with questions if you don't mind. The author of tablelist appears to be a Hungarian like myself, so maybe I'll pester him if I can find contact info.
        but instead of asking perl questions from tcl/tk person it would be even better to ask using already mentioned mailing list.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://887053]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2018-06-24 23:29 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.