This file contains 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 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 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 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 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 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 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 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 |
This file contains 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
pip install --download-cache=/home/clyde/.buildozer/cache --target=/home/clyde/camapp/.buildozer/applibs kivy |
This file contains 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 Tue Apr 8 09:31:31 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 | |
Found link https://pypi.python.org/packages/source/K/Kivy/Kivy-1.0.3-alpha.tar.gz#md5=dbd113ef52f7430ec92053a8f6f61588 (from https://pypi.python.org/simple/Kivy/), version: 1.0.3-alpha |
OlderNewer