Skip to content

Conversation

@chinmay-varier
Copy link

Get Parent can give the wrong handle or sometimes even none depending on window ownership, failing to apply or applying to an unintended window

Get Parent can give the wrong handle or sometimes even none depending on window ownership, failing to apply or applying to an unintended window
@chinmay-varier chinmay-varier changed the title Update ctk_tk.py Code without get parent to get the right handle Sep 29, 2025
@FedericoSpada
Copy link
Collaborator

It seems to me that you de-indented the whole _windows_set_titlebar_color() function, making it invalid python code.

Moreover, can you move the new "import" directive near the already existing one for the same library?
Finally, can you remove the comment "# Third key fix: use Tk's HWND directly instead of GetParent(...)" since it is just a logbook of what has changed.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants