Re: PyGUI show_text()

2007-02-03 Thread greg
Arnd wrote: > I needed some finer text-positioning on a canvas (ie wanted to center > a string wrt a point, something show_text() doesn't provide) Fonts have ascent, descent, height and line_height attributes, and a width() method for measuring the width of a string. You should be able to find out

PyGUI show_text()

2007-02-03 Thread Arnd
Heya, any PyGUI users out there? I needed some finer text-positioning on a canvas (ie wanted to center a string wrt a point, something show_text() doesn't provide) So I looked into the sources and found all information, eg the dimensions of the surrounding rectangle are given by mycanvas._font._g