dropdown

Passing Arguments in tkinter bindings

Passing Arguments in tkinter bindings Question: from tkinter import * from functools import partial root = Tk() root.geometry( "200×200" ) def show(event,y): print(y) print(clicked.get()) options = [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ] clicked = StringVar() clicked.set( "Monday" ) y=’test’ # Create Dropdown menu drop = OptionMenu( root , clicked , *options,command=partial(show,y) ) …

Total answers: 1

How to get selected value in dropdown list, then pass it to views.py

How to get selected value in dropdown list, then pass it to views.py Question: I’m working on an upload file feature with dropdown and dropzone. But, whenever I submit the uploaded file with selected option, it always says that the selected option is None. I found it None after I printed the nama_bimbingan in views.py. …

Total answers: 2