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

Background flashing on page change #19

Open
ferropasha opened this issue Apr 26, 2023 · 0 comments
Open

Background flashing on page change #19

ferropasha opened this issue Apr 26, 2023 · 0 comments

Comments

@ferropasha
Copy link

ferropasha commented Apr 26, 2023

I am trying to build a simple application, that should allow a user to view a sequence of images from a certain directory. For usability reasons in my app I can't resort to the most simple way of loading a bunch of images like
v.loadImages(glob.glob("*.jpg"))

and then just allow a user to scroll through them.
I need the app to perform some actions every time an image changes in the view depending on some attributes of said image and user's input. So I have to load images one at a time to implement the logic I need. I do it with a function, connected to Qbutton in my GUI.

def function_to_load_new_page(pagename):
self.v.clear()
self.v.loadImages(glob.glob(pagename))

The problem is every time I load a new image it doesn't replace previous one smoothly but after a flash of white background, which isn't great from UX standpoint.
Is there any way to achieve smooth transition after image changes? Am I doing something wrong in terms how I go about loading them?

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

No branches or pull requests

1 participant