-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows created with customtkinter does not recognize mouse-clicks until it's moved (macOS Sonoma) #1998
Comments
I could reproduce this using the The terminal output of this windows session is:
|
I would like to underline the importance of this bug report a little more: => It seems that customtkinter is pretty much broken on the latest version of macOS which was officially released yesterday. If this is true, many apps worldwide will become unusable in the coming weeks once macOS Sonoma is rolled out to more and more systems. Any idea what might cause the strange behavior shown in the video? Can anybody reproduce this? (Disclaimer: I’m the original author of the app noScribe that gernophil is porting to macOS. Customtkinter is great and worked perfectly on windows and macOS until now. Thank you very much!) |
Update: It seems like moving the window is not necessary. It's enough to just click the top title bar. |
hey mate. i faced the same issue with my app, however i don't use ctk. as i can see, ttk is broken. my app is broken once using ttk.combobox |
Same problem here with my app which uses ttk |
I faced the same issue after upgrading to Sonoma 14.0. One out of five times applications with CTK start working after a restart, but after some time the UI elements become unclickable again :( |
I did a litte more research. It seems to a problem with the underlying tkinter or even tcl/tk. Some people over there report that updating tcl/tk resolves the issue. I cannot test this myself, but it looks promising. Good luck. |
Is there even a way to update Tcl/Tk when using the official installers from python.org? |
I see the same problem after upgrading to Sonoma 14. Customtkinter also does not run in python 3.12, which is a separate issue. Presently, operating in Sonoma 14.1, my application must run in python 3.10 using Customtkinter 4.6.3 at max version with the mouse-click problem tolerated by first clicking somewhere in the app window not near a control object. The problem affects at least controls like buttons, check boxes, radio buttons and combo boxes. Combo boxes do open and show item selection changes but the desired item will not be registered. |
As a work around I switched to Python-tk from brew, because there I can update tcl/tk. For Python 3.10 and 3.11 there should be updated installers in December. For Python 3.9 there won't be new installers unfortunately. This is not a problem that can be solved by any Python package, but only by updating tcl/tk (which is bundled with the installers from python.org) |
Facing the same issue here, any updates? |
Only thing that works is using a newer version of tcl-tk (see post above). There won't be updates for Python 3.9 from python.org. So, there seems to be no straightforward way other then using brew (or maybe conda). |
After struggling for 2 hours I managed to upgrade tkinter to '8.6.13' and the issue is gone, thanks! |
Hey everyone,
I just updated to Sonoma. I have an app that's build on
customtkinter
and in general it still works fine. I run the app and after some clicks, the window doesn't recognize mouse-clicks anymore. After I move the window around it works again until after some clicks it stops working again and I have to move the window again. So, in general, everything works, it's just very annoying :). I'll try to reproduce this with the official examples.The text was updated successfully, but these errors were encountered: