Revisions
-
kived revised this gist
Jan 7, 2015 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,12 +7,12 @@ 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: -
tshirtman revised this gist
Jan 7, 2015 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,8 @@ GridLayout: cols: 10 # this line is probably what you need size_hint: None, None size: self.minimum_size #hack don't do that on_parent: for i in range(1000): self.add_widget(F.Label(text='test', size_hint=(None, None))) -
tshirtman revised this gist
Jan 7, 2015 . 1 changed file with 7 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,10 +5,13 @@ ScrollView: size_hint: .9, .9 pos_hint: {'center': (.5, .5)} GridLayout: cols: 10 # this line is probably what you need size_hint: self.minimum_size #hack don't do that on_parent: for i in range(1000): self.add_widget(F.Label(text='test', size_hint=(None, None))) FloatLayout: Button: -
tshirtman revised this gist
Jan 7, 2015 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,6 +3,8 @@ <TestView@ModalView>: size_hint: .5, .5 ScrollView: size_hint: .9, .9 pos_hint: {'center': (.5, .5)} Label: text: '\n'.join(['test ' * 100] * 100) size: self.texture_size -
tshirtman created this gist
Jan 7, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ #:import F kivy.factory.Factory <TestView@ModalView>: size_hint: .5, .5 ScrollView: Label: text: '\n'.join(['test ' * 100] * 100) size: self.texture_size size_hint: None, None FloatLayout: Button: size_hint: None, None text: 'open me' on_press: F.TestView().open() pos_hint: {'center': (.5, .5)}