israel-dryer / ttkbootstrap

A supercharged theme extension for tkinter that enables on-demand modern flat style themes inspired by Bootstrap.
MIT License
1.79k stars 363 forks source link

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

Closed laggykiller closed 6 months ago

laggykiller commented 9 months ago

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 (https://github.com/israel-dryer/ttkbootstrap/issues/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 commented 9 months ago

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

laggykiller commented 6 months ago

Issue unrelated to ttlbootstrap itself and solved in upstream, closing