Greg, Much appreciated, I can see now that I am confusing callback to widgets with variable names , got the change my variable names to make them easier to distinguish as I'm writing the functions. Thank you for the great example , just starting down the road with Tkinter ... greatly appreciated! M
def importpath_cmd(*args): global importentry_path import tkinter from tkinter import filedialog tkinter.Tk().withdraw() # prevents an empty tkinter window from appearing importentry_path = filedialog.askopenfilename(title="Select File") print(importentry_path) _w1.importentry.config(textvariable=importentry_path) _w1.importentry.pack()
def importpath_cmd(*args): global importentry_path import tkinter from tkinter import filedialog tkinter.Tk().withdraw() # prevents an empty tkinter window from appearing importentry_path = filedialog.askopenfilename(title="Select File") print(importentry_path) _w1.importentry.config(textvariable=importentry_path) _w1.importentry.pack()
Using Page 7.3 on Win10 Python 3.10 Kind of stuck on getting the proper method for displaying the contents of a variable in a PAGE generated UI Window. Did a simple min code example, 1 button and one Entry widget Button calls the following from _support def importpath_cmd(*args): global importentry_path import tkinter from tkinter import filedialog tkinter.Tk().withdraw() # prevents an empty tkinter window from appearing importentry_path = filedialog.askopenfilename(title="Select File") print(importentry_path)...