Hi,I am trying to customize some behavior of the Scatter class, for instance that rotations are only in discrete (e.g. 10degs) angle are possible, but lets say for simplicity that I want to add a print statement:
class MyScatter(Scatter):
def __init__(self, **kwargs):
super(MyScatter, self).__init__(**kwargs)
def _set_rotation(self, rotation):
print("---------------> rotation = {}".format(rotation))
super(MyScatter, self)._set_rotation(rotation)
However, it seems that I am not overriding Scatter's methods.
I also tried something else, pulled a local copy from uix/scatter.py and renamed all the variables to MyScatter. But the MyScatter objects show no interaction (dragging, rotation, etc.).
So I am a little bit puzzled.
Cheers,
Michael