Detect Pango.Wrap done on Clutter.Text using Python



Hi,
I am trying to learn when a line whithin Clutter.Text has been wrapped.
I need to know the number of wraps preformed on each "Pango.Line".
I cannot find a way and trying a simple division of Pango.Line with
Clutter.Text.width does not work well as it depends on letter lengths or
words depending on the WrapMode.

Is there an easy way to learn of a performed wrapping, maybe there is a
signal that is sent that I cannot find?

I need to know it to resize and scroll the text within the PISAK
application: github.com/BrainTech/pisak

Regards,
Sasha Kijek


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]