goocanvas.Text — A text item.
|
goocanvas.Text
represents a text item. It is a subclass of
goocanvas.ItemSimple
and so inherits all of the style properties such as "stroke-color", "fill-color" and "line-width".
It also implements the goocanvas.Item
interface, so you can use the goocanvas.Item
functions such as goocanvas.Item.raise_()
and goocanvas.Item.rotate()
goocanvas.Text(properties
=None)
| A comma separated list of properties. |
Returns : | A new
goocanvas.Text
|
Creates a new canvas text item.
Here's an example showing how to create a text item with the bottom right of the text box placed at (500,500):
text = goocanvas.Text(string="Hello, World!", x=500, y=500 width=200, anchor=gtk.ANCHOR_SE, fill_color="blue")