This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Update on brush stroke event

Tags: None
(comma "," separated)
tothom
Registered Member
Posts
1
Karma
0

Update on brush stroke event

Mon Jan 06, 2020 7:34 pm
Hi

I use Krita for technical sketches. It's the best program I found for this. Mainly because of the brilliant assistant system (among other things).

However I miss to see the length of the lines I draw in real time. Grid helps a lot, and I can use the measure tool to measure, but I would like to see it while I draw.

Since I know a bit Python I thought I could program a widget which shows this information while I draw, but I struggle to find out how I can "subscribe" to brush events in Krita.

More concretely I want my widget to register the point on canvas when I start to draw, and continously show the distance from that point to where the brush is at any given moment while drawing. How can I in Python listen to those events from a widget? (Maybe at a later stage I could make the widget show actual travel distance, but first I would like to make the simple version).

Could anyone point me in the right direction?

Best regards,
Thomas


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]