Hi,
Run attached script.
You can see three states of an element. The first one is default state.
1. Right click on slider and choose either 'state 1' or 'state 2'.
2. Click on 'Default' button to go back to 'default' state.
Previously I was using hide-unhide mechanism to show current state of
an element.
In hide-unhide system you have to create three state panel in advance
and that's not
system friendly way.
It was working fine until number of state elements has been increased
(70-100) in nodes
and creating an element editor was slow (much-much slower on Linux
compare to windows).
The new implementation is based on creating state on demand. The
states can be changed by user
or it can be changed by an external signal. The 'RootPanel' is the
main panel that holds state panel, one at
any give time.
I would like to get some opinion from experts user regarding this mechanism.
1. Implementation should be as fast as possible.
2. Any OS related issue in above implementation?
3. Any room to further enhancement in this implementation?
Cheers
Prashant
ae2.py (8.85 KB)