Skip to content
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

GUI elements not responsive on x86_64 macOS 14 if mouse cursor was under the window region during startup #494

Closed
laggykiller opened this issue Oct 2, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@laggykiller
Copy link

laggykiller commented Oct 2, 2023

Desktop (please complete the following information):

ttkbootstrap version 1.10.1
OS: macOS

Describe the bug

GUI elements not responsive on macOS scaled display / non-native resolution, until press on window bar.

If mouse cursor was inside of tkinter window when tkinter window is opening up, the widgets inside the window become unresponsive (e.g. Click on button not registered). This weird state is resolved when user drag the window, or leaving the tkinter window region for a while.

To Reproduce

*: Remember to patch Image.CUBIC to Image.BICUBIC before experiment (#492)

  1. Set macOS to use scaled resolution (e.g. 1920x1080 on 4k display, correspond to 200%)
  2. Move mouse into where tkinter window would be and python -m ttkbootstrap
  3. Try to click on buttons and option menu. They are not quite responsive.
  4. Try to click on window bar or move cursor away from window before click UI elements. They are 100% responsive now.

Expected behavior

GUI elements should be responsive once I open the window

Screenshots

out

Additional context

No such problem for normal tkinter

@laggykiller laggykiller added the bug Something isn't working label Oct 2, 2023
@laggykiller laggykiller changed the title GUI elements not responsive on macOS scaled display until press on window bar GUI elements not responsive on x86_64 macOS 14 if mouse cursor was under the window region during startup Oct 2, 2023
@laggykiller
Copy link
Author

Edit: Seems like this is not ttkbootstrap specific issue. I have opened a bug report upstream: python/cpython#110218

@laggykiller
Copy link
Author

Issue unrelated to ttlbootstrap itself and solved in upstream, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant