Skip to content

Instantly share code, notes, and snippets.

View smglab's full-sized avatar

Max Shabalihin smglab

  • Saint Petersburg, Russian
View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCgq0t7bdrfwMVXhOFa8jpiM32Bra58AfF8d+bu8a13kCBoUyOFBE03d2Nw7OQ/oAWjq4g6xOLG/ah9cxItAeOMVKTMGBufyadaizReHS68fQfumh8Eia/HYnZ9MQsK7G86atAn/1IUuBuWnZW4r3tsz8YgtNwcvox3TjfdO5c7EDLg1keUaGzeFNJixIsHsU7k7FBoHzYTZCjCtwVU9mHkg904j1BoQdQnPw67/58huNre42fVdN+q1+27IRTLLBhi8K6DHVfcCb0ljPVCFoKPImC+cAwMbmuLRF2qU9vLM72Juphzp6C3WC1s/PB3Jc43AcTM09x3tV00MRhxCnll smglab@desktop
@smglab
smglab / gist:a5f4fcfb094f54c44ff0
Created February 4, 2015 15:06
Kivy Dynamically adding items to ScrollView at the end scroll
from kivy.uix.scrollview import ScrollView
class EndEventScroll(ScrollView):
def on_scroll_stop(self, *args, **kwargs):
result = super(EndEventScroll, self).on_scroll_stop(*args, **kwargs)
if self.scroll_y < 0 and hasattr(self, 'on_end_event'):
self.on_end_event()