[pygtk] Zooming Text on Canvas
Hussein Vastani
hvastani at vt.edu
Fri Mar 17 05:56:44 WST 2006
Hello All,
I cant figure out a way to Zoom text on a canvas
I have CanvasItems like CanvasLine, CanavsPixbuf and CanvasText on my canvas
and with the canvas.set_pixels_per_unit(..) method, all but CanvasText zoom
ok.
Is there is any reason why my CanvasText does not zoom ?
BTW my Canvas is not in antialiased mode and this is how I add my text to the
canvas.
text = self.root().add(gnomecanvas.CanvasText,
fill_color='black') text.set_property('anchor',
gtk.ANCHOR_WEST)
text.set_property('size-points', 15.0)
text.move(x_loc,y_loc)
text.set_property('text', "MYTEXT")
Any help will be appreciated
Thanks
Hussein Vastani
More information about the pygtk
mailing list