Sex, 2005-12-23 às 04:19 +0100, Anton Empl escreveu:
> Hi everybody,
> 
> 
> I am fairly new to pygtk, so please accept my apologies if this isn't a
> question for this list, or if this is trivial.
> 
> It is a font related question and pertains to   pygtk 2.6.3 / gtk 2.8.9
> 
> In context of a larger application I do need to set and know the exact
> width/height of a gtk.Entry(). Because alignment is important a
> monospace
> font is used. To set the width for the gtk.Entry() widget I use
> entry.set_width_chars(n)  as shown below.
> 
> I hoped that the below code would open a gtk.Entry() displaying the full text 
> -
> instead the gtk.Entry() is shorter than the string, differently
> depending on the
> selected font size, almost as if the width of the gtk.Entry() widget was
> computed for a different font.
> 
> Is this not the preferred/correct way to request the gtk.Entry() size? Should 
> I
> be using a different version of pygtk/gtk?

  Your test program works perfectly here, with gtk 2.8.6-0ubuntu2.1 and
pango 1.10.1-0ubuntu1.  I very much doubt the pygtk version makes any
difference at all.

  Good luck.

-- 
Gustavo J. A. M. Carneiro
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
The universe is always one step beyond logic.

Attachment: signature.asc
Description: Esta é uma parte de mensagem assinada digitalmente

_______________________________________________
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