Skip to content

Instantly share code, notes, and snippets.

#:kivy 1.5.1
FloatLayout:
size_hint: (1,1)
bookcover: bookcover
Carousel:
pos_hint: {'center_x': 0.5, 'top': app.booky}
size_hint: (1,1)
id: bookcover
@KristerV
KristerV / main.py
Last active December 14, 2015 11:09
bug report for kivy - ScrollView.bind(scroll_y=x)
from kivy.lang import Builder
from kivy.app import App
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.scrollview import ScrollView
from kivy.uix.label import Label
from kivy.clock import Clock
class TestApp(App):
from kivy.lang import Builder
from kivy.app import App
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.scrollview import ScrollView
from kivy.uix.label import Label
from kivy.clock import Clock
class TestApp(App):
from random import random
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.uix.button import Button
from kivy.graphics import Color, Ellipse, Line
class MyPaintWidget(Widget):
def on_touch_down(self, touch):
from kivy.app import App
from kivy.metrics import Metrics
class TestApp(App):
def build(self):
print Metrics.density()
if __name__ == '__main__':
'''
Image auto_reload test
======================
Testing ground for auto_reload
'''
import kivy
kivy.require('1.8.0')
file 1 the commands I used for packaging
file 2 adb logcat when starting app
as far as I can tell, everything installed correctly
note: everything done as non-root, a.k.a. normal user.
Meteor.http.post('https://api.mailgun.net/v2/movieatmyplace.com/messages',
{
auth:"api:" + process.env.MAILGUN_API_KEY,
params:
{
"from":"Dev McCool <[email protected]>",
"to":[e.currentTarget.value],
"subject":"Behold: the power of Meteor and Mailgun",
"html":"A <b>bold</b> greeting goes here",
"h:X-Mailgun-Variables":JSON.stringify({tracking_id:my_tracking_var}),
body {
background-image: url(film1.jpg);
background-size: cover;
background-position: center;
color: white;
margin: 0;
font-family: Verdana, Arial;
}
.film-wrapper {
[
{
"kg": 0.5,
"m3": null,
"estonia": {
"zone1": 4.27,
"zone2": 4.79,
"zone3": 5.24,
"zone4": 5.91,
},