PyGUI show_text()
greg
greg at cosc.canterbury.ac.nz
Sat Feb 3 19:36:19 EST 2007
More information about the Python-list mailing list
Sat Feb 3 19:36:19 EST 2007
- Previous message (by thread): result of os.times() is different with 'time' command
- Next message (by thread): PyGUI show_text()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 what you need to know from those. > would it be possible to include some optional positioning > parameters, something like left,center,right,top,middle,bottom to > show_text()). Yes, I'm considering something like that. > All in all thanks a lot for PyGUI, Glad you like it! -- Greg
- Previous message (by thread): result of os.times() is different with 'time' command
- Next message (by thread): PyGUI show_text()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list