Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Applications of Perl\Tk

by Marshall (Canon)
on May 13, 2011 at 15:50 UTC ( [id://904694]=note: print w/replies, xml ) Need Help??


in reply to Re: Applications of Perl\Tk
in thread Applications of Perl\Tk

ActiveState doesn't include Tk anymore in standard distribution. But it is available as a package that you can install with ppm over the web. Or, if you get the .ppd file, you can take that over to a target machine via sneaker net and install it that way - no compile necessary, at least not for 32 bit. Maybe there is some glitch with 64 bit - don't know as I am still only 32 bit.

Replies are listed 'Best First'.
Re^3: Applications of Perl\Tk
by Gulliver (Monk) on May 13, 2011 at 20:29 UTC

    ActiveState doesn't include Perl/Tk anymore. ActivePerl 5.10 and greater come with Tk, Tcl and the module Tkx to talk to them.

    Sneakernet would take a while since my target servers are hundreds of miles away, virtual and in a blade setup which I would need help with anyway. I'm remoting into the servers. There is definately a glitch with 64 bit when the compiler isn't setup correctly. I have tried. I had no trouble with Strawberry Perl on my laptop compiling Perl/Tk but that wasn't useful if applications wouldn't work on the target. Then I discovered Tkx.

      So if I want to create GUI using perl what is advisable to use? Tcl or Tk or Tkx?..

      I know there is no harm in learning anything, however if I am learning it I want it to be usefull in my profession

        So if I want to create GUI using perl what is advisable to use? Tcl or Tk or Tkx?

        Add wxPerl to the list of the GUI toolkits and choose one (or more), based on the features that any of the libraries provides.

        One can make a choice only after he learns at least at a basic level how to use them, and what are the differences between the widget capabilities. There are subtle, but important differences between the implementations, for example Tk::StatusBar labels can have color text and can be centered, but in wxPerl that's not yet implemented (at least in wxwidgets 2.8.11. This is not so important for the functionality of the application, but you got the point ...), on the other hand wxPerl has other advantages over PerlTk, including the fact that it is developed actively.

        What I mean is that you can implement a MVC pattern, an use any of the toolkits to create the view part of the application, you even can experiment with more than one toolkit. I have a experimental project of a database application on GitHub that uses PerlTk and wxPerl for the View part of the implementation (https://github.com/stefansbv/Tpda3)

        Regards, Stefan

Log In?
Username:
Password:

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

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

    No recent polls found