Skip to content

Instantly share code, notes, and snippets.

Traceback (most recent call last):
File "main.py", line 6, in <module>
import kivent_cymunk
File "/home/hoz/KivEnt/modules/cymunk/kivent_cymunk/__init__.py", line 1, in <module>
from . import physics
File "constraint.pxd", line 90, in init kivent_cymunk.physics (kivent_cymunk/physics.c:8537)
ImportError: No module named cymunk.cymunk
@hchandad
hchandad / hscroll.py
Created May 25, 2015 03:14
Horizontal scroll with ScrollView
from kivy.uix.scrollview import ScrollView
from kivy.uix.gridlayout import GridLayout
from kivy.uix.button import Button
from kivy.base import runTouchApp
layout = GridLayout(rows=1, size_hint_x=None)
layout.bind(minimum_width=layout.setter('width'))
for i in range(30):
btn = Button(text=str(i), size_hint_x=None, width=40)
<SecondLevel>:
second_lvl_label: second_lvl_label.__self__
Label:
id: second_lvl_label
text: str(root.bool)
Button:
text: 'counter here'
on_release: print app.root.counter;self.text = str(app.root.counter)
@hchandad
hchandad / modifiedslider.py
Created August 20, 2015 22:54
a simple display of a Slider with a on_release event.
from __future__ import print_function
from kivy.app import App
from kivy.uix.slider import Slider
from kivy.uix.boxlayout import BoxLayout
class ModifiedSlider(Slider):
def __init__(self, **kwargs):
self.register_event_type('on_release')
super(ModifiedSlider, self).__init__(**kwargs)
@hchandad
hchandad / ex.diff
Created October 8, 2016 18:19
issue example
diff --git a/core/templates/dev/head/components/ResponseHeaderDirective.js b/core/templates/dev/head/components/ResponseHeaderDirective.js
index bdbc649..538ce46 100644
--- a/core/templates/dev/head/components/ResponseHeaderDirective.js
+++ b/core/templates/dev/head/components/ResponseHeaderDirective.js
@@ -25,7 +25,9 @@ oppia.directive('responseHeader', [function() {
getSummary: '&summary',
getShortSummary: '&shortSummary',
isActive: '&isActive',
- getOnDeleteFn: '&onDeleteFn'
+ getOnDeleteFn: '&onDeleteFn',