Dec-06-2018, 06:30 PM
(Dec-06-2018, 05:21 PM)omm Wrote: enter_button = Button(window,text="Enter",command=lambda:lib_func(str_var.get()))If you want the StringVar, why not just pass
str_var
? str_var.get()
returns whatever's currently in the stringvar... as a string. Calling dir()
on a string is apparently not what you want to do.