tkinter configure event 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: configure funCtion in tkinter
from tkinter import *
new_window = Tk()
new_window.title("Hello World")
new_window.geometry("300x250")
new_window.config(bg = "red")
new_window.mainloop()