Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: TclTk interface with Perl code, is it possible?

by Anonymous Monk
on Jan 13, 2012 at 10:04 UTC ( #947720=note: print w/ replies, xml ) Need Help??


in reply to TclTk interface with Perl code, is it possible?

Choices breed complications :) I apologize in advance for this post :)

I tried some search, but don't have a clue at a point is that : Can I build the interface with Tcl, and then finished the code with Perl?

Sure with Tcl::pTk you can. You can do the whole thing "in perl" or in tcl. example Re: Tk hidden binding

If you use Tkx, I hear ActiveState has a GUI builder in some version of their Komodo product that will generate perl code, and it should be easy to pack with their perlapp

If yes, that still one more question is that who's the host and whose the guest? I mean after the program finish, the script is interpreted by Perl or Tcl ? Coz I need to compile the app to an exe file before I distribute to my colleagues.

Yeah, packing stuff in a single exe puts you at a slight disadvantage, its not a one-click-world with Tcl::pTk, not that it is with any of the other toolkits, but activetcl is trickier. perl is the host, it embeds tcl, but all the widgets aren't warpped up in a neat single dll like tkkit, you'd have to either copy a bunch of files, or create one , or ...

But if no, could you suggest any approach for me? I need a GUI builder to build the interface, and write the code with Perl... and I am on WinXP.

Sure, its not Tk, but its easy GUI with easy deployment, its http://www.citrusperl.com/ , it comes with Cava Packager + wxPerl, add my wxWidgets / wxPerl / wxGlade tutorial and you're up and running

Ps. I know nothing about Tcl language though.

oh boy, why did you bring it up?

Maybe you'd like to try Tk/ZooZ.pl? Or Prima/VB - Visual Builder for the Prima toolkit? Or Wx/wxGlade?

Those ought to be the easiest to install from sources and pack. I mean they're all equally easy, or hard.. whatever you pick, there will always be some legwork, something to learn, something to get help on ... the smarter you are, the easier it will be :) Most of these are free options, the cash options fare about the same, except you pay someone to listen/help with any problems

All GUI toolkits are about the SAME, work the same way .... hey, you could even use a browser as your GUI, jquery, etc, etc, with a perl webserver backend ( cgi-app / mojo / dancer / catalyst )

You'll want to peruse these to get some ideas of how things work, typical FAQ-y problems, tuts, etc, etc, etc


Comment on Re: TclTk interface with Perl code, is it possible?
Re^2: TclTk interface with Perl code, is it possible?
by exilepanda (Monk) on Jan 13, 2012 at 17:50 UTC
    OMG!! This is a deep structure.... Really need time to run through... ( Orz ) But truly thanks for a very nice beginner guide. This really helps to head me to some direction with some clue. Seems I'll take a try on pTk and wxGlade way first. Thank you very much! =)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (13)
As of 2014-08-20 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (124 votes), past polls