[Tutor] Learning Tkinter

Kyle Babich kyle@runbox.com
Fri Feb 7 13:20:09 2003


I'm trying to learn Tkinter which I've been putting off for a while but I f=
eel it is now necesary.  So soley for the purpose of simplicity I pumped my=
 entire program into a function called track then I added this below it:

root =3D Tkinter.Tk()
menubar =3D Tkinter.Menu(root)
root.config(menu=3Dmenubar)

filemenu =3D Tkinter.Menu(menubar)
menubar.add_cascade(label=3D'File', menu=3Dfilemenu)
filemenu.add_command(label=3D'Exit', command=3Dsys.exit)

widget =3D Tkinter.Label(root, track)     #Problem- running track within th=
e window
widget.config(bg=3D'white', fg=3D'black')
widget.config(font=3D('courier', 10))
widget.pack(expand=3D'YES', fill=3D'both')
root.mainloop()

It is generally what I was going for considering it is my first GUI but how=
 would I run the former command line program that was put into the function=
 track within the GUI?

Thank you,
Kyle