0
Tkinter内でOptionMenuの構文について適切な説明を見つけることができません。Python 3 Tkinter Optionsメニュー
OptionMenuで現在選択されているオプションをどのように取得できますか?
def homeTeamOption(self, frame, sortedList):
def func():
print(homeTeamName)
return
homeTeam = tk.StringVar(frame)
returnValueAwayTeam = []
options = sortedList
homeTeamName = tk.StringVar()
drop = OptionMenu(frame, homeTeamName, *options, command=func())
drop.place(x=200, y= 100, anchor="nw")