-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Remove/Empty/Destroy #462
Comments
The above functions are auto generated, and call
|
Bringing this across from issue #423 A common use case is to clear & repopulate a container. This isn't straight-forward enough. The code is already there in removeAllWidgets - it just needs adapting to be applied to a specific container. It would also be good to be able to reset or keep the container settings in _prepContainer
|
issues #462, #497, #423 New functions: * emptyXXX - allows a named container to be emptied * emptyCurrentContainer - allows the current container to be emptied * destroyAllSubWindows - deletes all subWindows in the GUI Changed: * removeAllWidgets - will only empty main GUI, unless `current` is set to True, in which case it will empty current container, and/or `sub` is set to `True` which will then delete all subWindows
Getting there! - remove/empty/destroy are all (just about) sharing the same code. Only thing left is container settings &
|
`_initvars` removed, global vars moved to GUI constructor. No new container settings introduced. `labWidth` removed, `accessMade` updated appropriately.
Introduced a `SKIP_CLEANSE` property to widgets that can be skipped during cleansing.
Where we're at:
|
Closing as I think it's all done! |
I'm not happy with how appJar removes widgets.
There are a few scenarios we should support:
At the moment we provide:
.disable XXX (name)
.enable XXX (name)
.hide XXX (name)
.show XXX (name)
.remove XXX (name)
.removeAllWidgets()
I propose:
.empty XXX (name)
remove
todestroy
.removeAllWidgets()
a shortcut to.empty XXX(topLevel)
The text was updated successfully, but these errors were encountered: