[Python] Python on mac: tkinter button reacts only on deep click

Discussão em 'Python' iniciado por Stack, Maio 19, 2025.

  1. Stack

    Stack Membro Participativo

    I use python 3.13.3 on a macbook air M1 (2020) with Sequoia 15.5

    I am testing the following program:

    import tkinter as tk

    def button_clicked():
    print("Button was clicked!")

    window = tk.Tk()
    window.title("Button Test")

    button = tk.Button(window, text="Click Me", command=button_clicked)
    button.pack(padx=20, pady=20)

    window.mainloop()


    The button created reacts only when I use a deep click on the touchpad. Neither tapping nor simple clicks have an effect. Did somebody encounter the same?

    Continue reading...

Compartilhe esta Página