Last active
February 9, 2018 01:17
-
-
Save tito/5a8dd770fd5876d791b76e031cada7d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from kivy.app import App | |
from kivy.factory import Factory | |
class TestApp(App): | |
def build(self): | |
return Factory.Button(text="Hello") | |
def reset(): | |
import kivy.core.window as window | |
from kivy.base import EventLoop | |
if not EventLoop.event_listeners: | |
from kivy.cache import Cache | |
window.Window = window.core_select_lib('window', window.window_impl, True) | |
Cache.print_usage() | |
for cat in Cache._categories: | |
Cache._objects[cat] = {} | |
# first run | |
reset() | |
TestApp().run() | |
reset() | |
TestApp().run() | |
reset() | |
TestApp().run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment