Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Mouse in perl?

by kael (Monk)
on Jun 21, 2000 at 06:41 UTC ( [id://19151]=perlquestion: print w/replies, xml ) Need Help??

kael has asked for the wisdom of the Perl Monks concerning the following question:

Is there a way to use the mouse with perl? Like to make menus, and clickable things, curious if anyone knows a way to do this?

Replies are listed 'Best First'.
Re: Mouse in perl?
by redmist (Deacon) on Jun 21, 2000 at 08:01 UTC
    Perl/Tk is simple to use; however, when you have many elements in the window, it becomes rather difficult (IMO) to arrange them perfectly. Maybe there is something I am missing, but for complicated interfaces, Perl/Tk is not the way to go.

    On the other hand, if you just need to get a simple clean interface together, the development time for Perl/Tk for those types of apps is very short.

    redmist
      what would you suggest for more complicated interfaces? I'm not actualy using this for anything, I'm just curious as to how it could be done.
        I'm not that experienced to know, but I would imagine that it would be someting like GTK or something. Anybody else know?

        redmist
Re: Mouse in perl?
by chromatic (Archbishop) on Jun 21, 2000 at 07:54 UTC
    Besides that, the CPAN has a directory devoted to User Interfaces. I've seen Gtk used quite effectively, with a minimum of code, and Tk is also popular.
      Last I heard GTk hadn't been ported to Win32 - so Tk is still the only way to go if cross-platform is important to you.
      --
      <a href="http://www.dave.org.uk><http://www.dave.org.uk>

      European Perl Conference - Sept 22/24 2000
      <http://www.yapc.org/Europe/>
        GTK has indeed been ported to Windows; see this link. I don't know if anyone's written Perl bindings for GTK on Windows, though. Tk is definitely the safest way to go cross-platform.
RE: Mouse in perl?
by Shendal (Hermit) on Jun 21, 2000 at 18:36 UTC
RE: Mouse in perl?
by Russ (Deacon) on Jun 21, 2000 at 06:53 UTC
    You might check into Perl/Tk. It is rumored to be effective and easy to use...

    Russ

RE: Mouse in perl?
by BigJoe (Curate) on Jun 21, 2000 at 19:08 UTC
    I would use GTK. From what I have done with it in C it is very slick and straight forward. I don't see it being to hard to do it in PERL. If you are going to create menus on a web page, my suggestion would be to use JavaScript to create that.

    --BigJoe

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-03-28 13:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found