tkinter-menu

How to pass values from a linked menu item in python tkinter?

How to pass values from a linked menu item in python tkinter? Question: How to create a variable to hold and pass label of the item selected from a drop down menu? While I’m here, may I ask how to send a second (spare) variable into a function in tkinter at the same time. I’m …

Total answers: 3

tkinter python – menu button doesnt work with a loop

tkinter python – menu button doesnt work with a loop Question: I have a project with a problem that I recreated in this small code from tkinter import * top = Tk() mb= Menubutton ( top, text="condiments", relief=RAISED ) mb.grid() mb.menu = Menu ( mb, tearoff = 0 ) mb["menu"] = mb.menu for dressing in …

Total answers: 1