Re: tkInter Listbox question

2010-06-22 Thread eb303
On Jun 21, 6:36 pm, rantingrick wrote: > On Jun 21, 12:36 am, Anthony Papillion wrote: > > > So I'm trying to add a Listbox to my window. I want it to be the width > > of my window and the height of my window.  I'm using the following > > code ('root' is my toplevel window): > > > gsItems = Listb

Re: tkInter Listbox question

2010-06-21 Thread Anthony Papillion
Thank you, RantingRick and EB303. Much appreciated and it looks like it works fine now. Still learning but I am amazed every single day how simple Python is! Thanks Again, Anthony Papillion -- http://mail.python.org/mailman/listinfo/python-list

Re: tkInter Listbox question

2010-06-21 Thread rantingrick
On Jun 21, 12:36 am, Anthony Papillion wrote: > So I'm trying to add a Listbox to my window. I want it to be the width > of my window and the height of my window.  I'm using the following > code ('root' is my toplevel window): > > gsItems = Listbox(root, width=root.winfo_width(), > height=root.win

Re: tkInter Listbox question

2010-06-21 Thread eb303
On Jun 21, 7:36 am, Anthony Papillion wrote: > So I'm trying to add a Listbox to my window. I want it to be the width > of my window and the height of my window.  I'm using the following > code ('root' is my toplevel window): > > gsItems = Listbox(root, width=root.winfo_width(), > height=root.winf

Re: Tkinter Listbox - Different Text colors in one listbox

2007-05-31 Thread Hendrik van Rooyen
<[EMAIL PROTECTED]> wrote: > On May 29, 2:02 pm, [EMAIL PROTECTED] wrote: > > Hi, > > Is it possible to havedifferentitems in alistboxindifferentcolors? Or is it justonecolor for all items in alistbox? > > Thanks > > Rahul > > from Tkinter import * > > root = Tk() > l = Listbox(root) > l.pack()

Re: Tkinter Listbox - Different Text colors in one listbox

2007-05-30 Thread rahulnag22
On May 30, 6:04 am, [EMAIL PROTECTED] wrote: > On May 29, 2:02 pm, [EMAIL PROTECTED] wrote: > > > Hi, > > Is it possible to havedifferentitems in alistboxindifferentcolors? Or is it > > justonecolor for all items in alistbox? > > Thanks > > Rahul > > from Tkinter import * > > root = Tk() > l = Lis

Re: Tkinter Listbox - Different Text colors in one listbox

2007-05-30 Thread rfg007
On May 29, 2:02 pm, [EMAIL PROTECTED] wrote: > Hi, > Is it possible to havedifferentitems in alistboxindifferentcolors? Or is it > justonecolor for all items in alistbox? > Thanks > Rahul from Tkinter import * root = Tk() l = Listbox(root) l.pack() for x in range(10): l.insert(END, x) l.item

Re: Tkinter Listbox - Different Text colors in one listbox

2007-05-30 Thread Eric Brunel
On Tue, 29 May 2007 19:02:03 +0200, <[EMAIL PROTECTED]> wrote: > Hi, > Is it possible to have different items in a listbox in different > colors? Or is it just one color for all items in a listbox? > Thanks > Rahul > AFAIK, this is not possible with a listbox. You can however quite easily emula

Re: Tkinter Listbox - Different Text colors in one listbox

2007-05-30 Thread Hendrik van Rooyen
<[EMAIL PROTECTED]> wrote: > Hi, > Is it possible to have different items in a listbox in different > colors? Or is it just one color for all items in a listbox? > Thanks > Rahul You specify text and foreground colour when you make the box, so I don't think its possible. - Hendrik -- http://

Re: Tkinter Listbox - Different Text colors in one listbox

2007-05-29 Thread kyosohma
On May 29, 12:02 pm, [EMAIL PROTECTED] wrote: > Hi, > Is it possible to have different items in a listbox in different > colors? Or is it just one color for all items in a listbox? > Thanks > Rahul Looks like it has to be the same color and font: http://www.pythonware.com/library/tkinter/introduct

Re: tkinter listbox

2007-04-25 Thread Gigs_
Gigs_ wrote: > I have two listbox on frame, and at same time i need to use one option > from both listbox. But when I click on first than on second listbox > first get deselected. > > How to make this? Is it possiblE? i found, just need to use exportselection=0 -- http://mail.python.org/mailman

Re: tkinter listbox

2007-04-25 Thread Gigs_
I have two listbox on frame, and at same time i need to use one option from both listbox. But when I click on first than on second listbox first get deselected. How to make this? Is it possiblE? -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter Listbox string formatting question - how to kill a dancingsnake ?

2006-11-02 Thread Hendrik van Rooyen
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote: In the meantime, I have produced this evil hack, that takes advantage of the difference in pixel widths between the space, and either the fullstop or the single quote... It will only work if you have quite a lot of space to waste between columns, an

Re: Tkinter Listbox string formatting question - how to kill adancingsnake ?

2006-10-31 Thread Hendrik van Rooyen
"Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote: > "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > > > instead of trying to force the listbox to behave like a multicolumn > > widget, maybe you could switch to another widget? some alternatives include > > > > a Text widget (you have to roll your

Re: Tkinter Listbox string formatting question - how to kill a dancingsnake ?

2006-10-31 Thread Hendrik van Rooyen
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > instead of trying to force the listbox to behave like a multicolumn > widget, maybe you could switch to another widget? some alternatives include > > a Text widget (you have to roll your own selection logic) I _really_ don't feel strong enough

Re: Tkinter Listbox string formatting question - how to kill a dancing snake ?

2006-10-31 Thread Fredrik Lundh
Hendrik van Rooyen wrote: > Is there a way to format this so it will line up with *any* font ? > > I would prefer not to give up and use a fixed width font - it looks so > teletypish... sounds like contradicting requirements to me. instead of trying to force the listbox to behave like a multi

Re: Tkinter listbox and ftputil

2006-09-03 Thread Hendrik van Rooyen
<[EMAIL PROTECTED]> wrote by email: Please keep it on the list... | Hi, | Hi and Thanks for all your help,everything work.But I have one | question,in string I am "new",and I don't know how to exactly split: | | example: | | '-rw-r--r-- 1 [EMAIL PROTECTED] | v-programs.byethost31.com 2376

Re: Tkinter listbox and ftputil

2006-09-02 Thread Hendrik van Rooyen
<[EMAIL PROTECTED]> wrote: | Hi, | Again I need help about tkinter listbox. | | | example: | | In listbox must write (imaginary file in server): | | ['-rw-r--r-- 1 [EMAIL PROTECTED] vedran.byethost12.com | 3506 Jun 25 14:40 file.gif'] | | | and then when somebody click on file in listbox,

Re: Tkinter listbox question

2006-09-01 Thread Hendrik van Rooyen
<[EMAIL PROTECTED]> Wrote: | Hi, | I need help about Tkinter listbox widget.I want,when somebody click on | any item(file) in Listbox,then in new Label widget text must be | selected item from server. | | my program (wrong example): | | import ftputil | import Tkinter | root=Tkinter.Tk() | f

Re: TkInter Listbox Widget Formatting

2005-06-02 Thread Jeff Epler
This isn't an option in the stock Tk listbox or any of the alternatives I know of offhand (bwidget ListBox, TixTList). The TkTable widget, which can also display multiple columns, can select different justifications, either for the whole table, or for single cells. I've never used TkTable with Pyt