XP is just a number | |
PerlMonks |
Re: Tk::Table too slow. Alternatives ?by pg (Canon) |
on Jan 01, 2004 at 22:43 UTC ( [id://318175]=note: print w/replies, xml ) | Need Help?? |
Tk::Table is slow, but I tried with 40 X 5 table, it seems "okay" to me. I don't know what widget you used for each cell. Some widgets are lighter than others. As you said an alternative is to draw on Canvas, I assume your table is readonly, in this case, Label is good enough for your cells. You can use Button as row and column header. (Even if your cells are writable, most likely Entry is good enough.) Below is the code I tried, it does take around 10 seconds to come up, but after that it responses to row or column scroll quite okay. (I think I should mention that my computer is 7 years old and really slow)
I do have a thought triggered by your OP, to create something like Tk::TableLite. The biggest parts I want to improve are:
In Section
Seekers of Perl Wisdom
|
|