close/quit function
Posted: Wed Feb 12, 2020 12:28 am
I'm trying to make a close and quit option on a floating menu that can act upon any/all open stacks. this involves a popup asking are you sure you want to (close/quit) and yes/no buttons that can close the stack that I had on top or quit all stacks. I've been able to get quit to work, but because close is so specific in what it is trying to act upon - the last opened stack which is not the popup (where the popup is the window with the button on it, and is also the top window/stack) it's a lot more difficult to get working. Is there a simple solution, or would I have to include something like "if stack xxx is open then close stack xxx" so, the long way.
I've looked through the dictionary and it seems like there isn't anything specific enough or anything that works within the context I need.
e. g. mainwindow open and substack1 open, substack2 and 3 not open but in existence. Close popup opens and button on popup must act on substack1, but also be able to act on substack 2 and/or 3 if open.
is there a command/etc. that works on the prior opened stack (e. g. not the popup, which is the current window)
I've looked through the dictionary and it seems like there isn't anything specific enough or anything that works within the context I need.
e. g. mainwindow open and substack1 open, substack2 and 3 not open but in existence. Close popup opens and button on popup must act on substack1, but also be able to act on substack 2 and/or 3 if open.
is there a command/etc. that works on the prior opened stack (e. g. not the popup, which is the current window)