|Syntactic Confectionery Delight|
proportional resizing tk tableby welle (Beadle)
|on Aug 04, 2011 at 21:41 UTC||Need Help??|
welle has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to resize the columns of a Tablematrix according to the size of the main window and the (variable number of columns)
This is what I have so far:
First I create a simple Tablematrix table, then I set the width of my main Window (full screen)
I do my Tablematrix rezising here. The rezising of the table's column should be proportionally to the width of the window. If window is x and I have 2 columns, each column shold be x/2, if I have 3 columns each column should be x/3, etc...
Of course, this doesn't work. Window width is not appropriate to set the (I think) character number of a tablematrix column.
Any idea on how I could solve this? Thank you