File: pyCommon.i

package info (click to toggle)
insighttoolkit5 5.4.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 704,384 kB
  • sloc: cpp: 783,592; ansic: 628,724; xml: 44,704; fortran: 34,250; python: 22,874; sh: 4,078; pascal: 2,636; lisp: 2,158; makefile: 464; yacc: 328; asm: 205; perl: 203; lex: 146; tcl: 132; javascript: 98; csh: 81
file content (18 lines) | stat: -rw-r--r-- 546 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
%define DECL_PYTHON_FORCE_SNAKE_CASE_CLASS(class_name)

    %extend class_name {
        %pythoncode %{
            def __internal_call__(self):
                """Create an object, update with the inputs and
                attributes, and return the result.

                The syntax is the same as the one used in New().
                Update() is ran once the input are changed, and
                the current output.
                """
                self.Update()
                return self.GetOutput()
            %}
    }

%enddef