Skip to content

Instantly share code, notes, and snippets.

@kived
Forked from tshirtman/modal_scrollview.kv
Last active August 29, 2015 14:13
Show Gist options
  • Save kived/f53ed1e213ccfb827687 to your computer and use it in GitHub Desktop.
Save kived/f53ed1e213ccfb827687 to your computer and use it in GitHub Desktop.
#:import F kivy.factory.Factory
<TestView@ModalView>:
size_hint: .5, .5
ScrollView:
size_hint: .9, .9
pos_hint: {'center': (.5, .5)}
GridLayout:
cols: 10
size_hint_y: None
height: self.minimum_height
#hack don't do this
on_parent:
for i in range(1000): self.add_widget(F.Label(text='test', size_hint_y=None, height=100))
FloatLayout:
Button:
size_hint: None, None
text: 'open me'
on_press: F.TestView().open()
pos_hint: {'center': (.5, .5)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment