Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Tutorials for custom widgets in Tcl/Tk

by kcott (Bishop)
on Aug 07, 2018 at 10:17 UTC ( #1219982=note: print w/replies, xml ) Need Help??


in reply to Tutorials for custom widgets in Tcl/Tk

G'day Sandy,

I take it you currently have Tk widgets you've written yourself and you want to translate them into something else; however, I don't really know what you mean by "perl Tcl/Tk". Perhaps Tcl::Tk, Tkx, or similar?

It's also unclear whether you're looking for online tutorials or books to buy.

Anyway, if you could clarify those points, it would help. In the meantime, here's a few suggestions.

  • I've never used Tcl::Tk; but I see from its doco, discussions of both "Perl/Tk" and "Tcl/Tk": maybe something useful there. I also noted in its MANIFEST what appears to be the same filenames (tk-demos/*) as Tk's widget demo: a comparison of the two might help.
  • I have used Tkx so, if that's what you're using, I may be able to provide more direct help. Its doco has links to tutorials. One in particular, TkDocs - Tk Tutorial, shows code for creating the same widgets using Perl, Tcl, Ruby and Python: again, a comparison may be fruitful.
  • ActiveState ActiveTcl provides a lot of documentation; although not too much in the way of Tk tutorials (as far as I can see). I did find this useful when I was first getting to grips with Tkx.

— Ken

Replies are listed 'Best First'.
Re^2: Tutorials for custom widgets in Tcl/Tk
by Sandy (Curate) on Aug 09, 2018 at 14:37 UTC
    Sorry if I was not clear

    I want to migrate to Tcl::Tk

    Yes, I have lots of custom widgets in Tk (Perl/Tk) that I want to migrate to Tcl::Tk

    I have looked at books online, but it is hard to tell if they are focussing more on Tcl than Tk. I don't want to spend oodles of money only to have a book that does not describe how to make custom widgets.

    Online tutorials are fine too... I just want to learn it.

    Apparently Tcl::Tk allows you to write pure Tcl code, which would allow me to create a custom widget in pure Tcl, translating would be a pain, but I will do it if I have to. But I still need to know how.

    Thx, Sandy

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1219982]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2022-01-29 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (74 votes). Check out past polls.

    Notices?