How to move/pan around the canvas in python?

Please, does someone know how to change (canvas) position? (panning around)
I checked canvas, view, document, window, krita and unfortunately I can’t find method related :frowning:

Thank you very much.

It normally is spacebar.

What I’m looking for is how to do it through python (code).

I wanted it since I started scripting in krita. Asked multiple times and found there is no way.
You can set zoom and rotation, but panning is done in canvas controller which is not available in python.
I even tried to do a recursive search across all the children of qwindow, but no - can’t find this object.
And I haven’t found any workaround for it as no action in krita changes pan (1-9 numbers are not considered actions, and there is also no access to those).

So I’m waiting for this too :wink:

1 Like

Right. I did not notice what section your question was posted under. My bad :slight_smile:

1 Like

No problem, it gave me a laugh xD.