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

Allow shapes to be set prior to toplevels being fully allocated #1

Open
dkfellows opened this issue Sep 16, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@dkfellows
Copy link
Owner

From the CAVEATS:

When setting the shape of a toplevel window, make sure that you perform an update idletasks between the creation of the toplevel and applying a shape set or shape update operation to it. This is because Tk works by reparenting toplevel windows into a (user-invisible) container, so allowing the introduction of a menubar to windows without having to alter the internal dimensions of the toplevel. Because this is done on an idle handler, you must wait until after that idle handler has executed before applying a reshape operation to a toplevel. Failure to do this will result in the reshaped toplevel being apparently encased in a toplevel window that is unresponsive to all events (like <Expose> events). While no harm is done to the application, this an undesirable effect that you probably do not want in your application.

This needs addressing.

@dkfellows dkfellows added the bug Something isn't working label Sep 16, 2021
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