python interface script implementation

How does paraview make a GUI operation correspond to a python code? I want to know the implementation of this aspect?

Using SM_SCOPED_TRACE , eg:

    SM_SCOPED_TRACE(Show)
      .arg("producer", producer)
      .arg("port", outputPort)
      .arg("view", view)
      .arg("display", repr);