# python interface script implementation

**URL:** https://discourse.paraview.org/t/python-interface-script-implementation/13890
**Category:** Development
**Tags:** python
**Created:** [February 8, 2024, 1:33am UTC](https://discourse.paraview.org/t/python-interface-script-implementation/13890 "2024-02-08T01:33:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ermore](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@ermore](https://discourse.paraview.org/u/ermore)
#### Post date: [February 8, 2024, 1:33am UTC](https://discourse.paraview.org/t/python-interface-script-implementation/13890/1 "2024-02-08T01:33:26Z")

</div>

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

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 8, 2024, 8:41am UTC](https://discourse.paraview.org/t/python-interface-script-implementation/13890/2 "2024-02-08T08:41:31Z")

</div>

Using `SM_SCOPED_TRACE` , eg:

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

```
