vanilla
vanilla copied to clipboard
HorizontalStackGroup – VerticalLine is horizontal
Maybe I'm doing something wrong, but it seems like the vertical line is behaving weirdly. It is not vertical at all. Here is my code:
from AppKit import NSObject
from PyObjCTools import AppHelper
import vanilla
class StackTest(object):
def __init__(self):
self.w = vanilla.Window((300, 300), minSize=(300, 300))
group = vanilla.Group((0, 0, 10, 10))
group.l = vanilla.List((0,0,-10,-10), ["a","b","c"])
group2 = vanilla.Group((0, 0, 10, 10))
group2.l = vanilla.List((0,0,-10,-10), ["d","e","f"])
group3 = vanilla.Group((0, 0, 10, 10))
group3.l = vanilla.List((0,0,-10,-10), ["g","h","i"])
self.w.stack = vanilla.HorizontalStackGroup((0,0, -0,-0), distribution="fillEqually", alignment='center')
self.w.stack.appendView(group)
self.w.stack.appendView(vanilla.VerticalLine((0, 0, 1, -0)), width=10)
self.w.stack.appendView(group2)
self.w.stack.appendView(vanilla.VerticalLine((0, 0, 1, -0)), width=10)
self.w.stack.appendView(group3)
self.w.open()
if __name__ == "__main__":
from vanilla.test.testTools import executeVanillaTest
executeVanillaTest(StackTest)