Corrected and made example working

This commit is contained in:
wolfc01 2012-01-02 04:21:48 -08:00
parent c1bcdc1d8e
commit a27a53eafb
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ identical to that of the ScrollView (size_hint_x=1, default), and set the
size_hint_y property to None :: size_hint_y property to None ::
layout = GridLayout(cols=1, spacing=10, size_hint_y=None) layout = GridLayout(cols=1, spacing=10, size_hint_y=None)
layout.bind(minimum_height=layout.setter('height'))
for i in range(30): for i in range(30):
btn = Button(text=str(i), size_hint_y=None, height=40) btn = Button(text=str(i), size_hint_y=None, height=40)
layout.add_widget(btn) layout.add_widget(btn)