On 4/11/06, Jan Filip Tristan <[EMAIL PROTECTED]> wrote:
> Hello,
> I have got a problem.I've got a List and I want to have everything in this
> List as an own OptionMenu piece.
from Tkinter import *
import Pmw
root=Tk()
Pmw.initialise()
var = StringVar()
var.set('Quanitity Surveyor')
opt_menu = Pmw.OptionMenu(root,labelpos=W,
label_text='Choose Profession',
menubutton_textvariable=var,
items=('Stockbrocker','Quantity Surveyor','Church Warden','BRM'),
menubutton_width = 16)
opt_menu.pack(anchor=W, padx=20, pady=30)
root.mainloop()
S
_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss