[Sugar-devel] EllipsizeMode error trying to port an activity to Gtk3
lionel at olpc-france.org
lionel at olpc-france.org
Sun Jun 9 10:31:22 EDT 2013
Yes, you got it ! Thanks for the tip.
Here my missing constants:
layout.set_alignment(Pango.Alignment.CENTER)
layout.set_wrap(Pango.WrapMode.WORD)
Lionel
De : Daniel Narvaez [mailto:dwnarvaez at gmail.com]
Envoyé : dimanche 9 juin 2013 16:25
À : Lionel Laské
Cc : Walter Bender; sugar-devel at lists.sugarlabs.org
Objet : Re: [Sugar-devel] EllipsizeMode error trying to port an activity to
Gtk3
Try dir(Pango) in a python console. It's Pango.WrapMode... I'm sure there is
a logic to go from C api to python too, but I don't know it :)
On 9 June 2013 16:22, <lionel at olpc-france.org
<mailto:lionel at olpc-france.org> > wrote:
Finally solved my issue with a big review of my imports. Thanks.
Ive got a last issue on Pango, no way to found some Pango constants
(ALIGN_CENTER and WRAP_WORD view my calls below).
Any idea where I can found it?
Lionel.
layout.set_alignment(Pango.ALIGN_CENTER)
layout.set_wrap(Pango.WRAP_WORD)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130609/983e79d3/attachment.html>
More information about the Sugar-devel
mailing list