Slicer: 2145-support-for-installing-extension-from-file 11b11932

Author Committer Branch Timestamp Parent
jcfr jcfr 2145-support-for-installing-extension-from-file 2014-01-27 18:15:43 2145-support-for-installing-extension-from-file 1e0faafb
Changeset

ENH: slicer.util - Add VTKObservationMixin python convenience class

This class provides a convenience interface to keep track of VTK
observations.

Assuming you have a class Foo already deriving from class Bar, you could
do:

class Foo(Bar, VTKObservationMixin):
def init(self):
super(Foo, self).init()

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

mod - Base/Python/slicer/util.py Diff File