Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Where is Perl/Tk? bribes.org is offline?

by slugger415 (Beadle)
on Jan 29, 2013 at 18:17 UTC ( #1015916=note: print w/ replies, xml ) Need Help??


in reply to Re: Where is Perl/Tk? bribes.org is offline?
in thread Where is Perl/Tk? bribes.org is offline?

probably a dumb question here, but is there a way to migrate my Tk script to Tkx? Are they pretty much the same?


Comment on Re^2: Where is Perl/Tk? bribes.org is offline?
Re^3: Where is Perl/Tk? bribes.org is offline?
by jandrew (Hermit) on Feb 04, 2013 at 06:29 UTC

    Tk and Tkx are both built on Tcl but the interfaces are different. Tkx uses a mildly more perlish interface.

    I've never translated Tk to Tkx but my first suggestion would be to go to the top of the script and change 'use Tk;' to 'use Tkx;' when you have Tkx installed and run the script to see what breaks. You can look up the section that is broken and convert to the new code here I think some of the old Tk style still works because not all Tcl elements are built as widgets and you still have to call them in the Tk way. I'm just not sure if having a widget in Tkx excludes the old Tk syntax.

      No no no no no no. Use Tcl::pTk, Tkx is significantly different from perl/Tk
Re^3: Where is Perl/Tk? bribes.org is offline?
by Anonymous Monk on Feb 04, 2013 at 07:03 UTC

    probably a dumb question here, but is there a way to migrate my Tk script to Tkx? Are they pretty much the same?

    No, but it could be as simple as use Tcl::pTk; except, if you can't manage to install Tk.pm, you're not going to manage to install Tcl::pTk. see Re: TclTk interface with Perl code, is it possible?, Re^2: GUI toolkit+designer for the perl newbie

    Don't bother migrating, just go ahead and install Tk.pm by any means possible, even if it means installing a 32bit version of perl, or a different perl build, or whatever else you have to do

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2014-09-23 12:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (220 votes), past polls