Tk tkinter 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: python tkinter
import tkinter as tk
obj = tk.Tk() # Creates a tkinter object
label = tk.Label(obj, text="This is a text button")