[Python] How to get Tkinter Mac-friendly menu shortcuts (cmd+key)

Discussão em 'Python' iniciado por Stack, Março 3, 2025.

  1. Stack

    Stack Membro Participativo

    I am considering shortcuts for Tkinter menu labels (commands). On Macs the combination with cmd ⌘ is common.

    So far I have found only self.bind_all("<Control-q>", self.quit). How to implement cmd ⌘ shortcuts?

    Then again, thinking about - once the app is finished - translating it to an executable file for Windows and a Mac application might cause difficulties when using cmd ⌘? What is the best way of dealing with this issue?

    Continue reading...

Compartilhe esta Página