Hi,
Have you seen the youtube-like skin that was posted lately at
viewtopic.php?f=26&t=111572 ?
The author actually used fake windows (the variables) with multiple fake layouts (the values) to simulate user-defined variables with mulitple choices.
For instance, for a boolean variable,
- Creation of myBoolWin with two l ayouts : myVarTrueLayout and myVarFalseLayout.
- Setting it to True equates to myBoolWin.setLayout(myVarTrueLayout)
- Seting it to False equates myBoolWin.setLayout(myVarFalseLayout)
- Testing if it is true equates to myVarTrueLayout.isActive
...
This also works great with multiple choices. Of course, fake windows and layouts should carry a meaningful id for better readability.The good thing is that unlike your approach with windows and anchors, no visual side effects are to be feared, because these fake windows remain invisible. They just act as placeholders for variables, and they don't even need to carry any content on their own.
I hope this helps for the time being.