GUI Toolkit - which one to learn? (GTK/GTK2/Tk)
  Home FAQ Contact Sign in
perl.beginners only
 
Advanced search
POPULAR GROUPS

more...

perl.beginners Profile…
 Up
GUI Toolkit - which one to learn? (GTK/GTK2/Tk)         


Author: Yitzle
Date: Feb 19, 2008 19:36

Hi
I decided throwing a GUI on Perl would be fun so I want to make a Connect Four.
Which GUI module would you advise? It seems the major contenders are
GTK, GTK2/GTK+ and Tk.
Tk seems to have the simplest interface which is nice, but it sure
doesn't look as pretty as GTK.
I took a peek at the GTK+ docs and, using a C-like API, it looks
pretty cumbersome.
I would appreciate if you could share your thought and/or views on the topic.
Thanks!
9 Comments
Re: GUI Toolkit - which one to learn? (GTK/GTK2/Tk)         


Author: Daniel Kasak
Date: Feb 19, 2008 20:00

On Tue, 2008-02-19 at 22:36 -0500, yitzle wrote:
> Hi
> I decided throwing a GUI on Perl would be fun so I want to make a Connect Four.
> Which GUI module would you advise? It seems the major contenders are
> GTK, GTK2/GTK+ and Tk.
> Tk seems to have the simplest interface which is nice, but it sure
> doesn't look as pretty as GTK.
> I took a peek at the GTK+ docs and, using a C-like API, it looks
> pretty cumbersome.

I disagree strongly. The API is very nice and in particular the Perl
bindings on top of it are superb. Go with Gtk2 ... seriously. I've
written lots of Gtk2-Perl apps that run on Linux, Windows and OS-X, and
they all run great. See http://entropy.homelinux.org/axis for some
screenshots of inhouse systems, and also some of my open-source stuff.
Show full article (1.01Kb)
no comments
Re: GUI Toolkit - which one to learn? (GTK/GTK2/Tk)         


Author: Chas. Owens
Date: Feb 19, 2008 20:20

On Feb 19, 2008 10:36 PM, yitzle users.sourceforge.net> wrote:
> Hi
> I decided throwing a GUI on Perl would be fun so I want to make a Connect Four.
> Which GUI module would you advise? It seems the major contenders are
> GTK, GTK2/GTK+ and Tk.
> Tk seems to have the simplest interface which is nice, but it sure
> doesn't look as pretty as GTK.
> I took a peek at the GTK+ docs and, using a C-like API, it looks
> pretty cumbersome.
> I would appreciate if you could share your thought and/or views on the topic.
> Thanks!
snip

Gtk is dead.

Tk is very portable, but a pain in the tuckus.

Gtk2 is fairly portable and provides the best interface for the
programmer. If looking at the docs for Gtk2 have made you think it is
a C-like API then you have been looking at the wrong docs. Here is a
quick hello world:

#!/usr/bin/perl
Show full article (1.43Kb)
no comments
Re: GUI Toolkit - which one to learn? (GTK/GTK2/Tk)         


Author: Octavian Rasnita
Date: Feb 19, 2008 23:24

I recommend WxPerl which is based on wxWindows. It is portable and unlike
Tk/GTK it is also accessible for the screen readers used by the blind.

See more at:

http://wxperl.sourceforge.net/

Octavian

----- Original Message -----
From: "yitzle" users.sourceforge.net>
To: "beginners @ perl. org" perl.org>
Sent: Wednesday, February 20, 2008 5:36 AM
Subject: GUI Toolkit - which one to learn? (GTK/GTK2/Tk)
Show full article (1.06Kb)
no comments
Re: GUI Toolkit - which one to learn? (GTK/GTK2/Tk)         


Author: Yitzle
Date: Feb 20, 2008 12:59

I don't know... maybe I /was/ looking at the C code.
The code Chas provided does look fairly similar to the Tk code.
Thanks for the replies. I guess I'll be using GTK2 after all :D
no comments
Re: GUI Toolkit - which one to learn? (GTK/GTK2/Tk)         


Author: Francisco Valladolid
Date: Feb 20, 2008 13:23

Hi,

it depends that you particular needs.

Example Tk is portable but primitive, the look and feel is good on Gtk2.
Gtk2 is also portable, in both Unix/Windows/ .

Sometimes you must try severals toolkits libraries to do this task, and the
last word always is your.

Regards.

On Feb 21, 2008 1:29 AM, yitzle users.sourceforge.net> wrote:
> I don't know... maybe I /was/ looking at the C code.
> The code Chas provided does look fairly similar to the Tk code.
> Thanks for the replies. I guess I'll be using GTK2 after all :D
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> http://learn.perl.org/
>
>
>
Show full article (0.78Kb)
no comments
Re: GUI Toolkit - which one to learn? (GTK/GTK2/Tk)         


Author: Octavian Rasnita
Date: Feb 20, 2008 23:17

From: "zentara" highstream.net> On Tue, 19 Feb 2008 22:36:09 -0500,
yitzle@users.sourceforge.net
> (yitzle) wrote:
>
>>Hi
>>I decided throwing a GUI on Perl would be fun so I want to make a Connect
>>Four.
>>Which GUI module would you advise? It seems the major contenders are
>>GTK, GTK2/GTK+ and Tk.
>>Tk seems to have the simplest interface which is nice, but it sure
>>doesn't look as pretty as GTK.
>>I took a peek at the GTK+ docs and, using a C-like API, it looks
>>pretty cumbersome.
>>I would appreciate if you could share your thought and/or views on the
>>topic.
>>Thanks!
>
> I agree with Daniel Kasak, Gtk2 is the way to go.
>
> I started with Tk, and still love it, but times have changed, and the ...
Show full article (1.93Kb)
no comments
Re: GUI Toolkit - which one to learn? (GTK/GTK2/Tk)         


Author: Robert Hicks
Date: Feb 21, 2008 07:47

zentara wrote:
> On Tue, 19 Feb 2008 22:36:09 -0500, yitzle@users.sourceforge.net
> (yitzle) wrote:
>
>> Hi
>> I decided throwing a GUI on Perl would be fun so I want to make a Connect Four.
>> Which GUI module would you advise? It seems the major contenders are
>> GTK, GTK2/GTK+ and Tk.
>> Tk seems to have the simplest interface which is nice, but it sure
>> doesn't look as pretty as GTK.
>> I took a peek at the GTK+ docs and, using a C-like API, it looks
>> pretty cumbersome.
>> I would appreciate if you could share your thought and/or views on the topic.
>> Thanks!
>
> I agree with Daniel Kasak, Gtk2 is the way to go.
>
> I started with Tk, and still love it, but times have changed, and the
> Gtk2 system is far superior to Tk, is a bit harder to learn, but well
> worth it. So if you had to pick one......Gtk2 will give you the best ...
Show full article (1.27Kb)
no comments
Re: GUI Toolkit - which one to learn? (GTK/GTK2/Tk)         


Author: Octavian Rasnita
Date: Feb 21, 2008 08:21

From: "zentara" highstream.net>

Thank you. I was able to install it (although after trying to "use Gtk2;" in
a program, it gave an error telling that a .dll file from site/lib/auto
can't be ran).
>>Do you know if it is accessible under Windows also? Do you know a sample
>>program that can be used under Windows in order to test it?
>>Thanks.
>>Octavian
>
> Not offhand. But you may want to ask this on the Perl/Gtk2 maillist.
Show full article (0.90Kb)
no comments
Re: GUI Toolkit - which one to learn? (GTK/GTK2/Tk)         


Author: Rob Dixon
Date: Feb 21, 2008 15:02

yitzle wrote:
> Hi
> I decided throwing a GUI on Perl would be fun so I want to make a Connect Four.
> Which GUI module would you advise? It seems the major contenders are
> GTK, GTK2/GTK+ and Tk.
> Tk seems to have the simplest interface which is nice, but it sure
> doesn't look as pretty as GTK.
> I took a peek at the GTK+ docs and, using a C-like API, it looks
> pretty cumbersome.
> I would appreciate if you could share your thought and/or views on the topic.

My personal recommendation is WxWindows

http://www.wxwindows.org/

Rob
no comments