> So I will posit the question to members of this list:  What resource do you
> use when you need to learn about a feature of Tk?

In Tk we have the concept of widgets. Everything like canvas, menubar,
radio button, button, window is a widget. And fortunately many of them
have been given a quite intutive name (some are not e.g. combo box type
of widget is knows as Optionmenu).

If u have installed all the docs. The point to start is :

perldoc Tk
perldoc Tk::overview
perldoc Tk::UserGuide


"perldoc Tk" will also show u all the available Tk modules/geometry
managers/binding events etc.
Suppose u have a widget Canvas then 
perldoc Tk::Canvas will list details about this widget.

U can also view the documentation on CPAN.


But if the above doesn't help u, u can refer to 
"Learning Perl/Tk" by Nancy Walsh (Publishers: O'Reilly)
(It's the only book i have read on Perl/Tk, so i'm not sure if this is
the best)

The book is quite similar to the perldoc but has an excellent chapter
explaining geometry managers and also has been arranged in a nice way.


Cheers
Mayank


Timothy Johnson wrote:
> 
> 
> This request brings up a good point, though, in that we have this great
> thing, namely tk, that can be a great shortcut to creating graphical
> applications from the normally flexible but often spartan Perl, and there
> doesn't seem to be a really good resource for learning or reference.
> 
> So I will posit the question to members of this list:  What resource do you
> use when you need to learn about a feature of Tk?
> 
> -----Original Message-----
> From: Mayank Ahuja
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Sent: 4/18/02 9:44 PM
> Subject: Re: TK madness
> 
> 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]

-- 
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