Publisher2 - Custom UI - Maximum recursion depth exceeded

Hi All,

I added a QSpinBox to my custom Publish UI.
However, when I add the getters and setters:

@property
def preroll_amount(self):
    return self.preroll_amount.value()

@preroll_amount.setter
def preroll_amount(self, value):
    self.preroll_amount.setValue(value)

I’m getting a maximum recursion depth exceeded.
Any idea what’s going on?

Cheers,

David

2 Likes

The property shouldn’t be named as the widget. The property is calling itself (instead of your widget) recursively, hence the error.

2 Likes