Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Tkinter MenuButton Widget

from tkinter import *
menubar = Tk()
bar = Menubutton ( menubar, text = 'Contact Details')
bar.grid()
bar.menu = Menu ( bar, tearoff = 0 )
bar['menu'] = bar.menu
cVar = IntVar()
aVar = IntVar()
bar.menu.add_checkbutton ( label ='softhunt.net@gmail.com', variable = cVar )
bar.menu.add_checkbutton ( label = 'LinkedIn "softhunt.net"', variable = aVar )
bar.pack()
menubar.mainloop()
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #Tkinter #MenuButton #Widget
ADD COMMENT
Topic
Name
4+5 =