Skip to content

Instantly share code, notes, and snippets.

@tito
Last active February 9, 2018 01:17
Show Gist options
  • Save tito/5a8dd770fd5876d791b76e031cada7d5 to your computer and use it in GitHub Desktop.
Save tito/5a8dd770fd5876d791b76e031cada7d5 to your computer and use it in GitHub Desktop.
# -*- 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