I'm doing a custom preferences modifying the existing one, I wanted to add a "difficulty setting" option. I have found a bug (I think). If I set the buttons xmaximum, I can change the width of buttons:
frame:
style_group "pref"
has vbox
label _("Game Difficulty")
hbox:
for i in range(3):
textbutton ("{size=18}"+SDiff[i]+"{/size}") xmaximum 100 action SetDifficulty(i)
xmaximum 100 is completely ignored. I don't understand then how I can change the xmaximum in preferences ?