Re: How to align the text of a Listbox to the right

2006-04-28 Thread Edward Elliott
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

Re: How to align the text of a Listbox to the right

2006-04-28 Thread Leonardo da Vinci
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

Re: How to align the text of a Listbox to the right

2006-04-28 Thread Eric Brunel
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

Re: How to align the text of a Listbox to the right

2006-04-27 Thread Jarek Zgoda
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

Re: How to align the text of a Listbox to the right

2006-04-27 Thread Leonardo da Vinci
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

Re: How to align the text of a Listbox to the right

2006-04-27 Thread Eric Brunel
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