Leonardo da Vinci wrote:
>> to limit the width to something acceptable, and show
>> only the tail of the line.
>
> Yes, this is exactly what I wanted to do. Do you know a way to
> accomplish that? Because Eric Brunel said it is impossible on a
> Listbox.
Use a string slice.
--
http://mail.pytho
Sori Schwimmer ha scritto:
> 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.
Yes, this is exactly what I wanted to do. Do you know a way to
accomplis
On 27 Apr 2006 07:00:36 -0700, Leonardo da Vinci
<[EMAIL PROTECTED]> wrote:
> I have to use a Listbox that shows a list of entries. Every entry is a
> char string quite long in size and I cannot set "width" to a large
> value due to limitations of screen resolution. The rightmost part is
> more
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, prec
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
I have to use a Listbox that shows a list of entries. Every entry is a
char string quite long in size and I cannot set "width" to a large
value due to limitations of screen resolution. The rightmost part is
more important, so I thought that I could show only the end of the
string by aligning the fi
On 27 Apr 2006 02:35:50 -0700, Leonardo da Vinci
<[EMAIL PROTECTED]> wrote:
> Greetings gentlemen and ladies,
> I have a question: in Tkinter, how to align a Listbox entry (i.e. a
> line of text) to the right?
In a real Listbox, the answer is simple: you can't.
What are you trying to do? Maybe
Greetings gentlemen and ladies,
I have a question: in Tkinter, how to align a Listbox entry (i.e. a
line of text) to the right?
Google did not show up the answer to my request.
Thanks very much.
L
--
http://mail.python.org/mailman/listinfo/python-list