Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

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


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

You probably can use the GUI builder you found if you take the TCL code it produces, and translate it to Perl by hand. It should not be too hard if you can find the equivalents.

(please note I have never written a single Tk GUI in my life, so I don't know how hard this might be)

Otherwise, you could try a different toolkit. Check whether the perl bindings for Gtk2 or Qt are easy to install (for Windows), and find a GUI builder for them. I can at least vouch that Gtk2's bindings look very similar to the C code the GUI builders often generate.


Comment on Re: TclTk interface with Perl code, is it possible?
Re^2: TclTk interface with Perl code, is it possible?
by Sinistral (Prior) on Jan 13, 2012 at 14:50 UTC

    Related to this idea, make sure to check out the TkDocs site, which can be your Rosetta Stone for figuring out Tk code. The documentation there uses Perl, Python, Ruby, and TCL.

      Wow! Thanks Man! This is a handy and lovely dictionary. Love it! Straight forward examples, will need to keep it for ever reference.
Re^2: TclTk interface with Perl code, is it possible?
by exilepanda (Monk) on Jan 13, 2012 at 18:15 UTC
    I've downloaded and took a look into GTK2.. but seems there's no GUI builder around.. did I miss something ?

      Well, these are for linux/unix, but they may exist for windows, too:

      $ debtags search 'devel::ui-builder && uitoolkit::gtk' gazpacho - GTK+ User Interface Designer glade - GTK+ 2 User Interface Builder glade-gnome - GTK+ 2 User Interface Builder (with GNOME 2 support) gtk2.0-examples - Examples files for the GTK+ 2.0 libgai-dev - Easy to use interface to create applets & dockapps libgai0 - Easy to use interface to create applets & dockapps libglade2-ruby1.8 - Libglade 2 bindings for the Ruby language monodevelop - Development Environment for GNOME pida - Python Integrated Development Application, a Python IDE thewidgetfactory - a showcase for GTK+ widgets vdk-doc - The Visual Development Kit C++ library vdk2-tutorial - Tutorial for the Visual Development Kit C++ library 2

      Oh, and I forgot to mention WxWidgets (WxPerl) in the list of alternative toolkits. Many people seem to like that one.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (14)
As of 2014-08-27 17:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (247 votes), past polls