tis 2004-11-09 klockan 13:25 -0800 skrev Steven Howe:
> Howdy Similarly confused but eager for clarity persons,
> 
> I'm having some problem with aligning text in a gtk.Entry object.
> 
> I have an gtk.Entry object, call it 'entry'. I'm trying to send it
> text that I would like aligned to the right edge of the box.
> I have gotten it's pango.layout object (call it entry.layout).

I'm not completely sure why your approach doesn't work, but my best
guess is that GtkEntry (or GtkEditable, its base class) keeps it's own
PangoLayout which you can't access.

However, to modify the alignment, use the xalign property, 1 is right
(for LTR scripts), so this will fix it in your code:

  entry.set_property('xalign', 1)

-- 
Johan Dahlin <[EMAIL PROTECTED]>

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to