How to align the text of a Listbox to the right
Jarek Zgoda
jzgoda at o2.usun.pl
Thu Apr 27 17:16:15 EDT 2006
Sori Schwimmer napisał(a):
> For a listbox, I would give a width and go with string
> formatting. In your case, I guess that what I'll do is
> to limit the width to something acceptable, and show
> only the tail of the line.
>
> Say, your width is w, then I'll show only the last w-4
> chars, preceded by '... ' (ellipsis+space). It might
> be nice to put a label on top of your listbox and
> dynamically change it's text attribute to the complete
> version of your selection in the listbox, broken in
> lines of appropriate length.
Yeah, but what is the question?
--
Jarek Zgoda
http://jpa.berlios.de/
More information about the Python-list
mailing list