2. I just don’t understand how I can center all the elements so as not to write a bunch of the same lines
Code: Select all
vbox:
style_prefix 'ShopItemMainWin_inner'
image Transform('bla/bla/bla/bla/bla.jpg', size=(bla,bla))
text 'BlaBla'
hbox:
text "Bla"
text "Bla"
# this is not working at all
style ShopItemMainWin_inner_image:
xalign .5
# but it works for: "text", "frame", "hbox", "button" ...
style ShopItemMainWin_inner_text:
xalign .5
style ShopItemMainWin_inner_hbox:
xalign .5
Code: Select all
image Transform('bla/bla/bla/bla/bla.jpg', size=(bla,bla)) xalign .52. How would you specify "xalign .5" once for "vbox" so as not to write it a bunch of times?
If I specify this for the parent, it doesn't work.
Code: Select all
style ShopItemMainWin_inner:
xalign .5