Faster GUI text control
Fredrik Lundh
fredrik at pythonware.com
Sun May 15 01:44:19 EDT 2005
"none <"@bag.python.org> wrote:
> > no, it would mean writing some python code. if all you need is a scrolling
> > text list, you can simply use the code on this page:
> >
> > http://effbot.org/zone/wck-4.htm
> >
> > (see "A scrollable list view, with scrollbar support" and, optionally,
> > the virtual data modifications under "Displaying Huge Data Sets")
> >
> > the resulting widget will update at constant speed, independent of the
> > data size.
> >
> > </F>
>
> Thanks for the suggestion. I looked at that, but I need to be able to
> selectively change colors on parts of the text and I didn't think I
> could do that with a list box. Am I misunderstanding that?
yes. the list view isn't a listbox, it's a new widget.
with the list view, you control the drawing yourself, and can draw things
in whatever way you want. (the section "Non-Standard Rendering" talks
about this; reading http://effbot.org/zone/wck-3.htm also helps).
</F>
More information about the Python-list
mailing list