Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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


In reply to Re: TclTk interface with Perl code, is it possible? by Anonymous Monk
in thread TclTk interface with Perl code, is it possible? by exilepanda

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-23 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found