tengo problema boton en tkinter
from tkinter import * def crear_label(frame, nombre, color, y, x): label = Label(frame, font=(“Comic Sans MS”, 11), fg=color, text=f”{nombre}”) label.grid(row=y, column=x) return label def boton(frame, text, borde, comando, letra, tamaño, puntero, color, y, x): boton = Button(frame) boton.grid(row=y, column=x, padx=7, pady=7) boton.config(text=f”{text}”, bd=borde, font=(letra, tamaño), cursor=puntero, command=comando, bg=color, relief=”groove”) return boton def entrada_datos(frame, variable, justify, […]
Access the tkinter widget properties from callback function
I have a function, lets call it create_window,where I created a tkinter window with only a label and a button. I have a command which calls a callback function, lets call it change. I can not access window components from change function. This is a sample: