Re: create_text problem...

Raders (raders@cwi.nl)
12 Apr 1995 18:21:35 GMT

muscatel@gateway.sctc.com (Joel Muscatello) wrote:
>Hello....
>
>I am currently using Python, and came across a problem using create_text in a
>canvas. I gave the command my_window_path.canvas.create_text("text") and get
>an error saying that I need more arguments:
> (i.e. windowname create text x y [options])
>
>Then, I gave the command my_window_path.canvas.create_text("text", 100, 100)
>From this command, I get the error... unknown option "100".
>
>Both of these errors are being returned from self.tk.getint from
>file Tkinter.py.
>
>I peeked through the FAQ, but did not find much about Tkinter.
>Could someone please tell me what the proper syntax is for this call?
>All my documentation says is " def create_text(self, *args): "
>
>
>Thanks a lot,
>
>Joel
>muscatel@sctc.com
>

Try my_window_path.canvas.create_text(100, 100, {"text":"my_text"})

"my_text" is the text that will be displayed.

Scott