Menu Button Demo : MenuButton : GUI Tk PYTHON examples


PYTHON examples » GUI Tk » MenuButton »

 

Menu Button Demo



from Tkinter import *    
root    = Tk()
mbutton = Menubutton(root, text='Food')     # the pull-down stands alone
picks   = Menu(mbutton)               
mbutton.config(menu=picks)           
picks.add_command(label='A',  command=root.quit)
picks.add_command(label='B',  command=root.quit)
picks.add_command(label='C', command=root.quit)
mbutton.pack()
mbutton.config(bg='white', bd=4, relief=RAISED)
root.mainloop()


           
       



    Related Scripts with Example Source Code in same category :

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo GUI Tk
» MenuButton