Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Did anybody every make a Graphic interface using Perl

by juo (Curate)
on Nov 02, 2004 at 07:33 UTC ( #404520=perlquestion: print w/ replies, xml ) Need Help??
juo has asked for the wisdom of the Perl Monks concerning the following question:

I have a question about Perl. I have often heard that Perl is as powerfull as a programmer language like C++ and can do most operations and sometimes even better. I was wondering if anybody has ever written a graphical display interface showing drawed lines and objects and ability to query those objects in Perl. Because so far I don't have seen any graphical applications of Perl besides of the GUI module Tk which is something else.

Pieter

Sorry about the confusion. I did not mean GUI interface but a CAM interface like somebody so nicely said below. I want to make some simple CAM interface showing certain objects on the screen in the form of lines and pads. See example below :

# PKG 24 PKG 5SMX 0 -0.02 -0.03 0.02 0.03 CT OB -0.01 -0.03 I OS -0.02 -0.02 OS -0.02 0.03 OS 0.02 0.03 OS 0.02 -0.03 OS -0.01 -0.03 OE CE

The sample above would have to show an object which has a certain name and which existing out of a combination of lines. A closed polygon.

Comment on Did anybody every make a Graphic interface using Perl
Download Code
Re: Did anybody every make a Graphic interface using Perl
by Joost (Canon) on Nov 02, 2004 at 08:02 UTC
    I really can't visualize what kind of program you're describing.

    A program that draws things on a window and then queries those drawings or widgets... Do you mean for instance; the position of a line on the canvas, the state of a button (clicked, raised, lowered, active...). Perl/Tk is very good at that kind of thing. Perl/Tk is not a program ofcourse, it's a toolkit for writing GUI programs with.

Re: Did anybody every make a Graphic interface using Perl
by dimar (Curate) on Nov 02, 2004 at 14:02 UTC

    Your question is a bit unclear, but it seems to have 2 parts: 1) Is perl capable of doing what you are talking about; and 2) Has anybody ever done what you are talking about using perl.

    The answer to your first question is "if it can be done in C++, it can be done in perl.

    The answer to your second question depends on what exactly you mean by "interface showing drawed lines and objects."

    • CAD / CAM software?
    • Diagram Generation software?
    • Graphics and Multimedia presentation software?
    • any general tool for visually manipulating a Directed Acyclic Graph?

    If you do not have anything specific in mind, then what you want is a general overview. A good book for this is Mastering Algorithms with Perl http://www.oreilly.com/catalog/maperl/index.html

Re: Did anybody every make a Graphic interface using Perl
by jdtoronto (Prior) on Nov 02, 2004 at 14:42 UTC
    A lot of what you ask for can be done in Tk, or in WxPerl, or GTk - all available from Perl.

    Depending on what you need to do there is also PDL - the Perl Data Language which has enormously powerful computational graphics, image manipulation and graphing capability.

    jdtoronto

Re: Did anybody every make a Graphic interface using Perl
by jdporter (Canon) on Nov 02, 2004 at 14:51 UTC
Re: Did anybody every make a Graphic interface using Perl
by samtregar (Abbot) on Nov 02, 2004 at 16:50 UTC
    I did a GUI app in Perl once called gRMA. It showed objects and lines using a Tk canvas. Generally I think there are better environments for programming desktop GUIs (Java, C#, etc), but if you want to do it in Perl you certainly can.

    -sam

Re: Did anybody every make a Graphic interface using Perl
by William G. Davis (Friar) on Nov 02, 2004 at 20:55 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2014-08-28 12:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (259 votes), past polls