The following has been taken from perldoc Tk::Canvas

TEXT ITEMS
     A text item displays a string of characters on the screen in
     one or more lines.  Text items support indexing and
     selection, along with the following text-related canvas
     methods:  dchars, focus, icursor, index, insert, select.
     Text items are created with methods of the following form:

      $canvas->createText(x, y, ?option, value, option, value, ...?)

     The arguments x and y specify the coordinates of a point
     used to position the text on the display (see the options
     below for more information on how text is displayed).  After
     the coordinates there may be any number of option-value
     pairs, each of which sets one of the configuration options
     for the item.  These same option-value pairs may be used in
     itemconfigure methods to change the item's configuration.

There is more to it......
For more details, u can refer to perldoc Tk::Canvas

I hope this helps

Regards
Mayank

James Taylor wrote:
> 
> I'm trying to develop a user interface for a program I've written - What
> I need the program to do is print out the results of the current process
> to the TK interface.  I absolutely can not figure out how to do a simple
> printing to TK function!@@!#  For example, I would have a program that
> does something like:
> 
> for (1 .. 10) {
>    print "$_\n";
> }
> 
> Well, I need to print that into the canvas in TK.  How the hell do I do
> this?! It seems like something so trivial, yet not even the Perl/TK
> tutorial talks about something as simple as this.
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Regards
Mayank

"The difference between ordinary and extraordinary is that little extra"
                                                                  -Anon

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to