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

Showing and hiding large numbers of elements causes black screen #496

Open
atkeeley opened this issue Dec 14, 2023 · 1 comment
Open

Showing and hiding large numbers of elements causes black screen #496

atkeeley opened this issue Dec 14, 2023 · 1 comment
Labels

Comments

@atkeeley
Copy link

Describe the bug
Showing and hiding large numbers of elements causes a black screen. Clicking anywhere on the screen seems to fix it each time.

To Reproduce
Steps to reproduce the behaviour:
In my case, this manifests as a gui with two tabs, clicking a tab hides the box for the other tab (and all of its children) and shows a different box (and all of its children). Adding a step to .update() the app does not seem to help or change the behavior.

Expected behaviour
Elements containing many other elements should hide and show as intended, without disappearing.

System information:

  • OS: MacOS (does not seem to occur in limited Windows testing)
  • guizero version: 1.4.0
@atkeeley atkeeley added the bug label Dec 14, 2023
@martinohanlon
Copy link
Collaborator

This is unlikely to be a guizero bug. tkinter / [the OS] is responsible for all the rendering of GUI.

My only suggestion was to call app.update() after making the change. A super hacky approach may also be to schedule a call to app.update using .after after a short time (e.g. 100 ms).

I would not surprised if this is a macOS only issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants