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 setup_gl_context(self, *args): | |
#clear_buffer | |
glEnable(GL_DEPTH_TEST) | |
self.fbo.clear_buffer() |
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 change_image(instance, photo, image_slider): | |
"""open selected image, resize and blit into texture""" | |
global currentTexture | |
try: | |
img = PILImage.open(instance.selection[0]) | |
except: pass | |
img = img.resize((180,240), PILImage.BICUBIC) | |
buf = img.tostring() | |
with open('buffer.txt', 'w') as f: | |
f.write(buf) |
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 change_image(instance, photo): | |
"""open selected image, resize and blit into texture""" | |
global currentTexture | |
##try: | |
img = PILImage.open(instance.selection[0]) | |
##print img | |
currentTexture = Texture.create(size= (180,240)) | |
img2 = img.resize((180,240), PILImage.BICUBIC) | |
buf = img2.tostring() | |
currentTexture.blit_buffer(buf, colorfmt='rgb', bufferfmt='ubyte') |
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 build(self): | |
l= Builder.load_file('newui.kv') | |
m= Builder.load_file('studentlist3.kv') | |
carousel.add_widget(l) | |
carousel.add_widget(m) | |
self.m = m | |
self.l = l | |
self.rootlayout = rootlayout | |
self.carousel = carousel |
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
import kivy | |
from kivy.lang import Builder | |
from kivy.uix.floatlayout import FloatLayout | |
from kivy.uix.gridlayout import GridLayout | |
from kivy.uix.anchorlayout import AnchorLayout | |
from kivy.uix.relativelayout import RelativeLayout | |
from kivy.app import App | |
from kivy.uix.label import Label | |
from kivy.uix.image import Image | |
from kivy.uix.button import Button |
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
[INFO ] Logger: Record log in /home/clyde/.kivy/logs/kivy_13-12-30_14.txt | |
[[1;32mINFO[0m ] Kivy v1.8.0-dev | |
[INFO ] Atlas: create an 50596x50596 rgba image | |
[WARNING ] stderr: Traceback (most recent call last): | |
[WARNING ] stderr: File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main | |
[WARNING ] stderr: "__main__", fname, loader, pkg_name) | |
[WARNING ] stderr: File "/usr/lib/python2.7/runpy.py", line 72, in _run_code | |
[WARNING ] stderr: exec code in run_globals | |
[WARNING ] stderr: File "/usr/lib/python2.7/dist-packages/kivy/atlas.py", line 388, in <module> | |
[WARNING ] stderr: ret = Atlas.create(outname, filenames, size, use_path=use_path) |
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
import kivy | |
kivy.require('1.8.0') | |
from kivy.app import App | |
from kivy.uix.widget import Widget | |
from kivy.uix.camera import Camera | |
from kivy.uix.button import Button | |
from kivy.core.window import Window | |
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
mylistobj.adapter = ListAdapter(data= sorted([item[0]+','+ item[1] for item in missing]), args_converter= args_conv, cls= ListItemButton) |
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/python (14371): File "/home/clyde/buildozer/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/uix/textinput.py", line 1009, in on_focus | |
I/python (14371): File "/home/clyde/buildozer/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/core/window/window_pygame.py", line 378, in request_keyboard | |
I/python (14371): File "_android.pyx", line 190, in android._android.show_keyboard (android/_android.c:2286) | |
I/python (14371): TypeError: show_keyboard() takes exactly 2 positional arguments (0 given) | |
I/python (14371): Python for android ended. | |
I/AndroidRuntime(14371): VM exiting with result code 0, cleanup skipped. |
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
clyde@clyde-N55SF:/home/kivy$ sudo make | |
python setup.py build_ext --inplace | |
[INFO ] Kivy v1.8.0-dev | |
Found GLES 2.0 headers at /usr/include/GLES2/gl2.h | |
running build_ext | |
Build configuration is: | |
* use_opengl_es2 = True | |
* use_sdl = False | |
* use_glew = False | |
* use_rpi = False |