Feb-12-2019, 02:58 PM
Just writing only this code I retrieve errors...hard to understand why. But thanks Larsz+60
import tkinter as tk master = Tk() master.geometry("800x800") master.configure(background='#3c485f') def Option_SelectionEvent(event): print("do it") optionList = ("Server1","Server2","Server3") s = StringVar() s.set("a") self.om = OptionMenu(master, s, *optionList, command=Option_SelectionEvent)