Faster GUI text control

none "none\" at (none)
Sun May 15 11:14:24 EDT 2005


Fredrik Lundh wrote:
> "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>
> 
> 
> 
Thanks for the clarification.  I'm going to go back and read the 
"Writing widgets" articles in detail.



More information about the Python-list mailing list