Advertisement
gr4viton

not scrolling

Oct 25th, 2015
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.13 KB | None | 0 0
  1. # .py
  2.  
  3. class Multicopter(GridLayout):
  4.  
  5.     def __init__(self, **kwargs):
  6.         super(Multicopter, self).__init__(**kwargs)
  7.  
  8. class multicopterApp(App):
  9.  
  10.     def build(self):
  11.  
  12.         h = 700
  13.         w = 1300
  14.         Config.set('kivy', 'show_fps', 1)
  15.         Config.set('kivy', 'desktop', 1)
  16.  
  17.         Config.set('graphics', 'position', 'custom')
  18.         Config.set('graphics', 'height', h)
  19.         Config.set('graphics', 'width', w)
  20.         Config.set('graphics', 'top', 15)
  21.         Config.set('graphics', 'left', 4)
  22.         Config.set('graphics', 'multisamples', 0)
  23.  
  24.     root = Multicopter()
  25.         return root
  26.  
  27. # .kv
  28. <Multicopter>:
  29.     cols: 2
  30.     GridLayout:
  31.         cols:1
  32.  
  33.         Button:
  34.             text: "Hide all"
  35.     # ...
  36.     Splitter:
  37.  
  38.         max_size: self.parent.width - 50
  39.         size: 1100, 400
  40.         size_hint: None,1
  41.  
  42.         GridLayout:
  43.             cols: 2
  44.             padding: 5
  45.             ScrollView:
  46.                 id: scroll_steps
  47.                 StackLayout:
  48.                     id: layout_steps
  49.                     height: self.minimum_height
  50.                     orientation: 'lr-tb'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement