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 | |
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
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
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 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 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
#this draws a magenta ellipse: | |
c = Ellipse(size = (200,279), pos = (220,118)) | |
with self.fbo: | |
Color(1,0,1,1) | |
c | |
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) | |
Rectangle(size = (640,480), texture = self.tex.texture) |
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 new_color(self, *args): | |
with self.fbo: | |
Color(self.mood[0], self.mood[1],self.mood[2],self.mood[3]) | |
Ellipse(size = (205,279), pos = (224,115)) | |
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) | |
Rectangle(size = (640,480), texture = self.tex.texture) |
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.app import App | |
from kivy.clock import Clock | |
from kivy.graphics import Rectangle, Ellipse | |
from kivy.uix.widget import Widget | |
from kivy.graphics.fbo import Fbo | |
from kivy.utils import get_random_color | |
from kivy.animation import Animation | |
from kivy.core.image import Image | |
from kivy.graphics import Color |
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
------------------------------------------------------------ | |
/home/clyde/camapp/.buildozer/venv/bin/pip run on Fri Apr 4 10:31:22 2014 | |
Downloading/unpacking kivy | |
Getting page https://pypi.python.org/simple/kivy/ | |
URLs to search for versions for kivy: | |
* https://pypi.python.org/simple/kivy/ | |
Analyzing links from page https://pypi.python.org/simple/Kivy/ | |
Found link https://pypi.python.org/packages/source/K/Kivy/Kivy-1.0.1-alpha.tar.gz#md5=3610522fce080ccf91c4ea6beb14f706 (from https://pypi.python.org/simple/Kivy/), version: 1.0.1-alpha | |
Found link https://pypi.python.org/packages/source/K/Kivy/Kivy-1.0.2-alpha.tar.gz#md5=779ae7b1e62195647e314d86b3a98bcd (from https://pypi.python.org/simple/Kivy/), version: 1.0.2-alpha |