Skip to content

Instantly share code, notes, and snippets.

@NumesSanguis
Created June 27, 2014 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NumesSanguis/ded56793795ed79697ce to your computer and use it in GitHub Desktop.
Save NumesSanguis/ded56793795ed79697ce to your computer and use it in GitHub Desktop.
Kivy ScrollView blur2 (without Blur)
from kivy.uix.label import Label
from kivy.uix.boxlayout import BoxLayout
from kivy.properties import StringProperty
from kivy.base import runTouchApp
from kivy.lang import Builder
Builder.load_string('''
<ScrollableLabel>:
orientation: 'vertical'
canvas.before:
Color:
rgba: 1, 1, 1, 1
Rectangle:
pos: self.pos
size: self.size
Label:
text: str('some really really long string' * 10)
size_hint_y: .8
font_size: '20sp'
text_size: self.width-10, None
color: 0, 0, 0, 1
#blurs text:
size_hint_y: None
height: int(self.texture_size[1]+10)
valign: 'top'
BoxLayout:
orientation: 'vertical'
size_hint_y: .2
Button:
text: 'Bla1'
font_size: 20
Button:
text: 'Bla2'
Button:
text: 'Bla3'
''')
class ScrollableLabel(BoxLayout):
pass
runTouchApp(ScrollableLabel())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment