tinker in python code example
Example 1: functions calling upon creation tkinter fix
Make your event handler a lambda function, which calls your command() - in this case get_dir()
- with whatever arguments you want:
xbBrowse = Button(frameN, text="Browse...", font=fontReg, command=lambda : self.get_dir(xbPath))
Example 2: how to create tkinter window
import tkinter
master = tkinter.Tk()
master.mainloop()