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 characters
class LockerLayout(Layout): | |
"""Spacing between children, in pixels.""" | |
spacing = NumericProperty(0) | |
"""Padding between layout box and children: [padding_left, padding_top, padding_right, padding_bottom]""" | |
padding = VariableListProperty() | |
"""size of lockers for attaching widgets, layout space divided among lockers proportionally to locker_size""" | |
locker_size = ListProperty() | |
"""Orientation of the layout.""" | |
orientation = OptionProperty('horizontal', options=('horizontal', 'vertical')) | |
"""locker box size ad position""" |
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 characters
LockerLayout: | |
id: locker1 | |
lockerid: 0 | |
orientation: 'horizontal' | |
locker_size: [.05, .8, .05] | |
LockerLayout: | |
id: locker2 | |
lockerid: 1 | |
orientation: 'vertical' | |
locker_size: [.9, .1] |