Slicer: 2145-support-for-installing-extension-from-file 4863e54b

Author Committer Branch Timestamp Parent
pieper pieper 2145-support-for-installing-extension-from-file 2013-06-12 17:17:34 2145-support-for-installing-extension-from-file 79b07967
Changeset

ENH: update the slicer.modules.<module>Widget attribute on reload

This way the attribute can be used consistently to access the gui
of the scripted module before or after it has been reloaded.

Also add an optional cleanup method, which module guis can use, for
example, to remove any observers to vtk objects or clean up other
references.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22099 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Extensions/Testing/ScriptedLoadableExtensionTemplate/ScriptedLoadableModuleTemplate/ScriptedLoadableModuleTemplate.py Diff File