Code: Select all
vbox:
style_prefix "check"
label _("Quick Menu")
textbutton _("Show") action Show("quick_menu")
textbutton _("Hide") action Hide("quick_menu")
To fix that I had to add "default show_quick_menu = True" at the beginning of my script which does show the quick menu, but then it never hides without me using "$ quick_menu = False" which is, I imagine, working as intended with "default show".
I have tried another method which also does not work for me.
Code: Select all
vbox:
style_prefix "check"
label _("Quick Menu")
textbutton _("Show") action Show("quickmenushow")
textbutton _("Hide") action Show("quickmenuhide")
Code: Select all
screen quickmenushow:
$ quick_menu = True
screen quickmenuhide:
$ quick_menu = False
Now, this thread viewtopic.php?t=26263 talks about what I want to do, but "make it 2 buttons inside a screen with a conditional branch" confuses me a bit. I think that's what I was doing with my second failed solution? But I'm not sure.
If someone could help me out I would appreciate it. I'm sure this is a very simple thing to do, but my google-fu really failed me on finding out how to do it.
Edit: Also, yes, my quick menu does have the "if quick_menu" statement which is why I thought the Show Hide buttons would work in the first place.