Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by jandrew (Hermit)
on Jan 25, 2013 at 20:51 UTC ( #1015406=note: print w/ replies, xml ) Need Help??


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

I think Activestate has transitioned from Tk to Tkx

In either case many windows perl users are transitioning to Strawberry Perl which does not require a package build per perl version. (And therefore package authors have dropped support for non-Activestate ppm repositories) Admittedly my Tkx build in Strawberry 5.14 required a forced install over a few errors but it installs straight from CPAN.


Comment on Re: Where is Perl/Tk? bribes.org is offline?
Re^2: Where is Perl/Tk? bribes.org is offline?
by slugger415 (Beadle) on Jan 29, 2013 at 18:17 UTC

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

      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

      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://1015406]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2014-09-03 02:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (35 votes), past polls