bugged viewport, frame or loop?
Posted: Thu Nov 23, 2017 4:34 pm
Well, after hours struggling against this, I'm now convinced it's a bug:
I have frames inside a hbox inside a vbox inside a viewport (crazy, yes).
When filling the viewport with a for loop, it gets tired of passing the correct properties and, at some point, it gets tired of passing the actual content of the frames:
I have frames inside a hbox inside a vbox inside a viewport (crazy, yes).
When filling the viewport with a for loop, it gets tired of passing the correct properties and, at some point, it gets tired of passing the actual content of the frames:
Code: Select all
screen test():
viewport:
scrollbars "vertical"
draggable True
mousewheel True
has vbox
xalign .5
hbox:
box_wrap True
spacing 30
for i in range(15):
frame:
xysize(300, 300)
bottom_margin 30
label "Frame " + str(i) yalign 0.0
text "Qfh fjksdh kjdsh fdkjshf sdhfkjdshfjk sdhf dsk" yalign 0.37
textbutton "Textbutton" action NullAction() yalign 1.0