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
| class CollisionBehaviour(object): | |
| def on_touch_down(self, touch): | |
| if self.collide_point(*touch.pos): | |
| return super(CollisionBehaviour, self).on_touch_down(touch) | |
| return False | |
| # ...then... | |
| class YourWidget(CollisionBehaviour, Widget): | |
| pass |
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
| canvas: | |
| Color: | |
| rgba: 1, 0, 0, 1 | |
| Rectangle: | |
| pos: 100, 300 | |
| size: 200, 200 |
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
| RelativeLayout: | |
| Image: | |
| source: 'a.jpg' | |
| allow_stretch: True |
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
| running build_ext | |
| building 'pygame.imageext' extension | |
| creating build/temp.linux-x86_64-2.7 | |
| creating build/temp.linux-x86_64-2.7/src | |
| arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /opt/android-ndk/platforms/android-14/arch-arm -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DANDROID -mandroid -fomit-frame-pointer --sysroot /opt/android-ndk/platforms/android-14/arch-arm -I/home/asandy/devel/betterp4a/build/bootstrap_builds/pygame/jni/png -I/home/asandy/devel/betterp4a/build/bootstrap_builds/pygame/jni/jpeg -I/home/asandy/devel/betterp4a/build/bootstrap_builds/pygame/jni/sdl/include -I/home/asandy/devel/betterp4a/build/bootstrap_builds/pygame/jni/sdl_mixer -I/home/asandy/devel/betterp4a/build/bootstrap_builds/pygame/jni/sdl_ttf -I/home/asandy/devel/betterp4a/build/bootstrap_builds/pygame/jni/sdl_image -fPIC -D_REENTRANT -I/home/asandy/devel/betterp4a/build/other_builds/hostpython2/armeabi/Python-2.7.2/Include -I/home/asandy/devel/betterp4a/build/other_builds/hostpython2/armeabi/ |
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
| I/ActivityManager( 622): Start proc net.inclem.p4atest:python for activity net.inclem.p4atest/org.renpy.android.PythonActivity: pid=29420 uid=10133 gids={50133, 1028, 1015} | |
| D/ActivityThread(29420): handleBindApplication:net.inclem.p4atest:python | |
| V/python (29420): metadata fullscreen is1 | |
| D/dalvikvm(29420): Trying to load lib /data/app-lib/net.inclem.p4atest-1/libpython2.7.so 0x41a7a0d8 | |
| D/dalvikvm(29420): Added shared lib /data/app-lib/net.inclem.p4atest-1/libpython2.7.so 0x41a7a0d8 | |
| D/dalvikvm(29420): No JNI_OnLoad found in /data/app-lib/net.inclem.p4atest-1/libpython2.7.so 0x41a7a0d8, skipping init | |
| D/dalvikvm(29420): Trying to load lib /data/data/net.inclem.p4atest/files/lib/python2.7/lib-dynload/_io.so 0x41a7a0d8 | |
| E/dalvikvm(29420): dlopen("/data/data/net.inclem.p4atest/files/lib/python2.7/lib-dynload/_io.so") failed: dlopen failed: cannot locate symbol "PyErr_SetString" referenced by "_io.so"... | |
| E/AndroidRuntime(29420): Process: net.inclem.p4atest:python, PID: 29420 | |
| I/ActivityManager( 622): Process net.inc |
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.lang import Builder | |
| from kivy.uix.effectwidget import EffectWidget, EffectBase | |
| Builder.load_string(''' | |
| <Root>: | |
| Widget: | |
| canvas: | |
| Color: | |
| rgba: 1, 1, 1, 1 |
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.lang import Builder | |
| from kivy.uix.effectwidget import EffectWidget, EffectBase, AdvancedEffectBase | |
| from kivy.clock import Clock | |
| from random import random | |
| Builder.load_string(''' | |
| <Root>: | |
| Widget: |
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
| Color: | |
| rgb: 0.3, 0.3, 0.3 from kivy.lang import Builder | |
| from kivy.uix.widget import Widget | |
| from kivy.uix.boxlayout import BoxLayout | |
| from kivy.properties import ListProperty | |
| from kivy.base import runTouchApp | |
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
| In [1]: class Test(object): | |
| ...: def raіse(self): | |
| ...: print('yay') | |
| ...: | |
| In [2]: t = Test() | |
| In [3]: t.raіse() | |
| yay |
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
| canvas.before: | |
| Color: | |
| rgba: 1, 0, 0, 1 | |
| Rectangle: | |
| pos: self.pos | |
| size: self.size |