[pygtk] exact geometry of Entry()

Anton Empl anton.empl at gmail.com
Thu Dec 11 04:58:53 WST 2008


Hi all,

maybe a crazy question, but I tried this some 2 years ago and gave up
and figured that possibly
things have changed since.

imagine 3 gtk.Entry() s
they are set to use a fixed character width font
and   .set_has_frame(False)    is used, so there are no frames

2 are placed above the 3rd one which is exactly twice as wide (in characters)

characters between top and bottom line up for the upper Entry() on the
left but not so for the one
on the right.

in my particular case I find   .get_layout_offsets()   =  (2, 2)   for
the Entry()s which I think is
the reason for the misalignment.

can one force the offset in X to be =0 for the upper Entry()  on the right ?

what about the   .set_inner_border(border)    could that help ? and
if, how would I find any
information on the gtk.Border() ? how could one set the width of the
inner border on the left
side of the Entry() widget ?

am I missing something ?



Anton


More information about the pygtk mailing list