Tkinter listbox question
- From: vedran_dekovic@xxxxxxxxx
- Date: 31 Aug 2006 05:41:43 -0700
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()
ftp=ftputil.FTPHost('some imaginary server')
def LabelWidget(event):
a=Tkinter.Label(root,text=) # Text must be only name and file
format,example: sun.gif
a.grid()
b=Tkinter.Listbox(root)
b.insert(Tkinter.END,ftp._dir(''))
b.place()
c=Tkinter.Button(root,text='PRINT THIS FILE IN NEW LABEL WIDGET')
c.bind('<Button-1>',LabelWidget)
c.grid()
root.mainloop()
THANKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.
- Prev by Date: Re: wxNotebook color change
- Next by Date: Re: Using eval with substitutions
- Previous by thread: Using eval with substitutions
- Next by thread: simultaneous copy to multiple media
- Index(es):