Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

[Bug] Event handling is broken on the macOS Sonoma 14.2.1 with tkinter backend

Ouverte
#6,719 10 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
25/100
Type d'issue
Bug
Clarté
À clarifier
Activité
À l'abandon
Stack technique
python
Domaine
desktop

Piste de recherche

Reproduce the click-handling problem using DemoPrograms/Demo_All_Elements.py on macOS Sonoma with the tkinter backend, then compare the behavior with the linked pure-data issue. Trace whether the failure is in PySimpleGUI or tkinter; the work is done when element clicks register reliably without repeated pointer movement.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Platform Specific Issue - Mac Port - TK
Type of Issue Bug

Operating System

macOS Sonoma 14.2.1

PySimpleGUI Port (tkinter, Qt, Wx, Web)

Versions

*** Version information copied to your clipboard. Paste into your GitHub Issue. ***

Python Interpeter: /opt/homebrew/Caskroom/miniconda/base/envs/biquad_designer_env/bin/python
Python version: 3.12.0
Platform: Mac
Platform version: ('14.2.1', ('', '', ''), 'arm64')
Port: PySimpleGUI
tkinter version: 8.6.12
PySimpleGUI version: 5.0.2
PySimpleGUI filename: /opt/homebrew/Caskroom/miniconda/base/envs/biquad_designer_env/lib/python3.12/site-packages/PySimpleGUI/PySimpleGUI.py

Your Experience In Months or Years (optional)

Years Python programming experience

2 years
Years Programming experience overall
6 years
Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)
Qt/QML, Win32API, a few attempts were made to use GTK4

Anything else you think would be helpful?
It seems that there is an existing issue in another project which describes the actual issue. Also, we have the support key assigned, but it's not clear in this issue form where to apply it.


Troubleshooting

These items may solve your problem. Please check those you've done by changing - [ ] to - [X]

  • Searched main docs for your problem PySimpleGUI Documenation
  • Looked for Demo Programs that are similar to your goal. It is recommend you use the Demo Browser! Demo Programs
  • None of your GUI code was generated by an AI algorithm like GPT
  • If not tkinter - looked for Demo Programs for specific port
  • For non tkinter - Looked at readme for your specific port if not PySimpleGUI (Qt, WX, Remi)
  • Run your program outside of your debugger (from a command line)
  • Searched through Issues (open and closed) to see if already reported Issues.PySimpleGUI.com
  • Have upgraded to the latest release of PySimpleGUI on PyPI (lastest official version)
  • Tried running the Development Build. Your problem may have already been fixed but not released. Check Home Window for release notes and upgrading capability
  • For licensing questions please email license@PySimpleGUI.com
Detailed Description

On the latest macOS version for M1 platform PySimpleGui behaves incorrectly with tkinter backend. There is an existing issue which describes the problem similar to our one:
https://github.com/pure-data/pure-data/issues/2105

The issue is simple. It looks like handling of events is broken either in PySimpleGui or tkinter backend. It's necessary to move the mouse pointer several times around the element for being able to pass a click to it. It seems to be either regression of tkinter or PySimpleGui backend. If any video/whatever help is required we can assist with this as well.

Code To Duplicate

I've tried to use this example:
https://github.com/PySimpleGUI/PySimpleGUI/blob/master/DemoPrograms/Demo_All_Elements.py

Screenshot, Sketch, or Drawing
image
Extras

Thanks for your handling the bug. Just a small question-where should we put our support code for the faster processing of the issue?


Langage dominant
Python
Étoiles
13.8k
Forks
1.8k
Métriques de merge des PR
Aucune PR mergée en 30 j

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de PySimpleGUI/PySimpleGUI

Toutes les issues de PySimpleGUI/PySimpleGUI

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.