busunsl has asked for the wisdom of the Perl Monks concerning the following question:
The first question concerns performance of a Listbox, or rather a MListbox.
I've got a MListbox which is filled initially before packing. For 7500 entries (I know, this is much, and I will change the design) this takes about 17 seconds.
It is possible to refresh the contents after the widget is packed and now it takes over a minute to fill the MListbox.
I'm sure I've read somewhere, that you can somehow freeze a widget while you update it and show it afterwards, but I forgot where and how.
Any idea?
The next question concerns the alignment of the Listbox entries. They are left aligned by default.
How can I change this to right or center aligned?
TIA
busunsl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk::Listbox: 2 questions: performance and alignment
by hiseldl (Priest) on Oct 10, 2002 at 14:01 UTC | |
by busunsl (Vicar) on Oct 11, 2002 at 07:03 UTC | |
by hiseldl (Priest) on Oct 11, 2002 at 14:01 UTC | |
by busunsl (Vicar) on Oct 14, 2002 at 05:48 UTC |