Closed RafalBuchner closed 11 months ago
HorizontalStackGroup has been replaced by HorizontalStackView. Here's a working version of your test:
import vanilla
class StackTest(object):
def __init__(self):
self.w = vanilla.Window((300, 300), minSize=(300, 300))
self.w.stack = vanilla.HorizontalStackView(
(0, 0, 0, 0),
distribution="fillEqually",
spacing=10,
views=[
dict(view=vanilla.Button("auto", "One"), width=150),
dict(view=vanilla.VerticalLine("auto"), height="fill"),
dict(view=vanilla.Button("auto", "Two"), width=150),
dict(view=vanilla.VerticalLine("auto"), height="fill"),
dict(view=vanilla.Button("auto", "Three"), width=150),
]
)
self.w.open()
StackTest()
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: