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
from android.runnable import run_on_ui_thread | |
from jnius import autoclass | |
from kivy.app import App | |
AndroidActivityInfo = autoclass('android.content.pm.ActivityInfo') | |
AndroidPythonActivity = autoclass('org.renpy.android.PythonActivity') | |
class MyApp(App): |
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
from kivy.animation import Animation | |
from kivy.graphics import CanvasBase | |
from kivy.graphics import Color | |
from kivy.graphics import Ellipse | |
from kivy.graphics import ScissorPush | |
from kivy.graphics import ScissorPop | |
from kivy.properties import ListProperty | |
from kivy.properties import NumericProperty | |
from kivy.uix.relativelayout import RelativeLayout |
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
def debug(func): | |
def wrapped(*args, **kwargs): | |
name = '{0}.{1}'.format( | |
func.__module__, | |
func.func_name | |
) | |
if args: | |
inst = args[0] | |
inst_func = getattr(inst, func.func_name, None) | |
unwrapped_func = getattr(inst_func, '_original_func', None) |
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
from kivy.app import App | |
from kivy.logger import Logger | |
try: | |
from jnius import autoclass | |
from android.runnable import run_on_ui_thread | |
android_api_version = autoclass('android.os.Build$VERSION') | |
AndroidView = autoclass('android.view.View') | |
AndroidPythonActivity = autoclass('org.renpy.android.PythonActivity') |
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
"""plone.app.async patch to provide old school Zope2 REQUEST on context. | |
Contributions: | |
* Jean Jordaan | |
* Robert Niederreiter | |
""" | |
import Zope2 | |
import sys | |
from AccessControl.SecurityManagement import ( |
NewerOlder