def get_methods(self, klass):
        methods = dir(klass)[:]
        if hasattr(klass, '__members__'):
            # Only VTK versions < 4.5 have these.
            for m in klass.__members__:
                methods.remove(m)

        return methods
Dynamic trait change handler.
dataset/ETHPy150Open VisTrails/VisTrails/contrib/titan/vtk_parser.py/VTKMethodParser.get_methods--crossover with--dataset/ETHPy150Open enthought/envisage/envisage/plugins/python_shell/view/python_shell_view.py/PythonShellView._on_key_pressed