You need to specify the font or the gdk font!

 Example:

 If you wish to use the default gtkstyle font!

 Canvas.root().add('text', text='x', x=110, y=50, justification=0,
        fill_color='black', font_gdk = self.get_style().font)

 Else it would be something like:
 
 Canvas.root().add('text', text='x', x=110, y=50, justification=0,
        fill_color='black', font = "Any X11 font")

 You also need to update_now() if you are doing it after showing the 
canvas and realizing it!


 I hope this helps!

 
 
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 1/1/00, 3:30:09 PM, Douglas Lau <[EMAIL PROTECTED]> wrote 
regarding [pygtk] GnomeCanvasText example:


> I am writing a strategy game using Python/Gnome, which uses the
> GnomeCanvas to display the game board.  I have been trying to use
> GnomeCanvasText widgets, but I can't get them to show up on the 
canvas.
> Does anybody have any examples on how to use them with the Python
> bindings?  Any help would be greatly appreciated.

> BTW, I will release my game under the GPL as soon as I can make it
> work.  It is a turn-bases strategy war game, if anyone cares.

> Thanks,
> Douglas Lau


> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to