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

Don't load the default AppName class as kv file #12

Open
rvanlaar opened this issue Apr 10, 2023 · 0 comments
Open

Don't load the default AppName class as kv file #12

rvanlaar opened this issue Apr 10, 2023 · 0 comments

Comments

@rvanlaar
Copy link

Please consider adding the following code to the Kaki App.
This fixes a bug where kivy autoloads the {app}.kv file which falls out of scope and results in duplicate content being drawn.
The autoloaded UI can't be updated and will be drawn for the duration of the app lifecycle.

    def load_kv(self, filename=None):
        """
        Don't autoload the appname .kv file when in debug mode
        due to the autoloaded .kv file being drawn but not bound to the code, resulting in stale pixels on the screen.
        """
        if self.DEBUG is True:
            return False
        return super().load_kv(filename=filename)
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