Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Where is Perl/Tk? is offline?

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

in reply to Where is Perl/Tk? 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? is offline?

Replies are listed 'Best First'.
Re^2: Where is Perl/Tk? is offline?
by slugger415 (Scribe) 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, 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 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015406]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2018-06-21 10:54 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (118 votes). Check out past polls.