agrega un botón
def add_button(parent, text, command): button = Button(parent, text=text, command=command) button.pack() def main(): root = Tk() root.title("Button Demo") root.geometry("300x200") # Create a frame to hold the buttons frame = Frame(root) frame.pack() # Create