Home > Archive > PERL POE > April 2007 > POE + Glade
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Matt Sickler 2007-03-28, 10:25 pm |
| okay, heres the story
I am developing a messenger app for my school (win32), currently I am using
POE + Tk
Then I wanted a GUI GUI-maker. someone pointed me to Glade (which is Gtk,
Glib, etc)
i found http://gladewin32.sourceforge.net which installed glib, glade, gtk,
etc or whatever, and now I am trying to install the necessary Perl modules
just wondering if anyone has any pointers or if you want me to paste the
specific CPAN.pm log I can
| |
| Whitney Jackson 2007-03-29, 4:40 am |
| You might find this talk from last year's YAPC to be interesting. The
idea is to use Perl for what it's good at (everything but the GUI).
Then build the graphical part in some other language. There's also a
lot about PAR which helps you package and distribute your Perl
application on Windows.
http://www.media-landscape.com/yapc...-27.ChrisDolan/
On Wed, 2007-03-28 at 21:01 -0500, Matt Sickler wrote:
> okay, heres the story
> I am developing a messenger app for my school (win32), currently I am using
> POE + Tk
> Then I wanted a GUI GUI-maker. someone pointed me to Glade (which is Gtk,
> Glib, etc)
>
>
> i found http://gladewin32.sourceforge.net which installed glib, glade, gtk,
> etc or whatever, and now I am trying to install the necessary Perl modules
>
> just wondering if anyone has any pointers or if you want me to paste the
> specific CPAN.pm log I can
| |
| Nicholas Perez 2007-03-29, 4:40 am |
| Glade is fairly straight forward, you just feed the resulting XML file
from the builder to its setup and wahlah instant gui. So really, all
you need to install is Gtk2::GladeXML and hope the deps compile in
cygwin or however you are compiling the XS. Make sure the header files
are installed for that gladewin32 (ie, the development environment
installer)
Of course, whatever that entails (ie, if you use Gnome widgets, what
does that ultimately mean for a win32 environment?), is left an
exercise to the reader.
I do want to second Whitney's suggestion to do the gui another way.
Doing Gtk development in win32 land is (or at least it once was)
painful to do. XUL might be a better option since it is fairly well
supported because of firefox. Then again, there are a handful of
successful GTK2 apps that build and run on win32 just fine (gaim being
a prime example).
This is going to probably be poo-poo'ed on, but have you considered
developing the app in C# and using Winforms? If the target platform is
windows use the tools that come native, you know? If you are scared to
go full throttle into MSland, then use Mono and Gtk# (heck even
Winforms since their support is pretty damn good at this point) and
that way your app is portable with a minimal amount of fuss.
If your heart isn't set on POE + GTK2, I would at least consider the
tools native to the platform.
HTH
On 3/28/07, Matt Sickler <crazyfordynamite@gmail.com> wrote:
> okay, heres the story
> I am developing a messenger app for my school (win32), currently I am using
> POE + Tk
> Then I wanted a GUI GUI-maker. someone pointed me to Glade (which is Gtk,
> Glib, etc)
>
>
> i found http://gladewin32.sourceforge.net which installed glib, glade, gtk,
> etc or whatever, and now I am trying to install the necessary Perl modules
>
> just wondering if anyone has any pointers or if you want me to paste the
> specific CPAN.pm log I can
>
| |
|
| Le Thu, 29 Mar 2007 00:08:15 -0500,
"Nicholas Perez" <nicholasrperez@gmail.com> a =C3=A9crit :
> I do want to second Whitney's suggestion to do the gui another way.
Another one would be to use a 100% Perl GUI toolkit that runs also
under Windows (and OS/2 !). Such a kit exists and is called Prima. At
the moment it does not support POE but Dmitri, the author, said that it
should be relatively simple to mingle the two loops.
The widgets are nice and there's even a GUI builder. The GUI builder
is not perfect and has some drawbacks, but it's still easy to work
with.
By the way, Dmitri has no objection to anyone wanting to contribute or
perhaps even take charge (please ask him for details) of the Prima
project and development. See the CPAN for contact.
I've used Prima for a non-POE project and it's much fun 'to be in Perl'
so to speak while making the GUI. The nice thing with Prima I've found
is that it's very simple to bring up something with the GUI builder and
add functionalities with Perl. From simple prompts to pattern-oriented
development.
I personally think it'd make a very nice POE addition.
Cheers.
| |
| Eriam Schaffter 2007-03-29, 8:26 am |
| > Le Thu, 29 Mar 2007 00:08:15 -0500,
> "Nicholas Perez" <nicholasrperez@gmail.com> a écrit :
>
>
> Another one would be to use a 100% Perl GUI toolkit that runs also
> under Windows (and OS/2 !). Such a kit exists and is called Prima. At
> the moment it does not support POE but Dmitri, the author, said that it
> should be relatively simple to mingle the two loops.
>
Has anyone already mentionned wxPerl (Gtk + Win32 + OSX with native look &
feel and controls) ?
It works like a charm with POE.
It's not that i'd like to confuse more the author of the thread but it's
worth the effort.
Thanks
(forgot to cc poe@perl.org)
| |
| Nicholas Perez 2007-03-29, 7:19 pm |
| This is pretty slick! It is like it is a mix of Tk and Winforms. I'll
have to play with it. And provided binaries for various platforms is
always a bonus.
Just be wary of the various platform "peculiarities". Looks like if
you are going to be doing any kind of 2D graphics work, you might end
up with strange behaviors:
http://search.cpan.org/~karasik/Pri...gp-problems.pod
Of course, if you want a GUI builder for Tk there is always ZooZ. I
haven't used it, and it doesn't look very robust, but the author
"consider[s] it to be very usable"
On 3/29/07, lanas <lanas@securenet.net> wrote:
> Le Thu, 29 Mar 2007 00:08:15 -0500,
> "Nicholas Perez" <nicholasrperez@gmail.com> a =E9crit :
>
>
> Another one would be to use a 100% Perl GUI toolkit that runs also
> under Windows (and OS/2 !). Such a kit exists and is called Prima. At
> the moment it does not support POE but Dmitri, the author, said that it
> should be relatively simple to mingle the two loops.
>
> The widgets are nice and there's even a GUI builder. The GUI builder
> is not perfect and has some drawbacks, but it's still easy to work
> with.
>
> By the way, Dmitri has no objection to anyone wanting to contribute or
> perhaps even take charge (please ask him for details) of the Prima
> project and development. See the CPAN for contact.
>
> I've used Prima for a non-POE project and it's much fun 'to be in Perl'
> so to speak while making the GUI. The nice thing with Prima I've found
> is that it's very simple to bring up something with the GUI builder and
> add functionalities with Perl. From simple prompts to pattern-oriented
> development.
>
> I personally think it'd make a very nice POE addition.
>
> Cheers.
>
| |
|
| Le Thu, 29 Mar 2007 09:33:01 -0500,
"Nicholas Perez" <nicholasrperez@gmail.com> a =C3=A9crit :
> This is pretty slick! It is like it is a mix of Tk and Winforms. I'll
> have to play with it. And provided binaries for various platforms is
> always a bonus.
>=20
> Just be wary of the various platform "peculiarities". Looks like if
> you are going to be doing any kind of 2D graphics work, you might end
> up with strange behaviors:
> http://search.cpan.org/~karasik/Pri...gp-problems.pod
Well, I've used Prima strictly for user interfaces and not for actual
graphic work, but thinking about it and POE, it could be fun to
visualize networked inputs in a movable 2D scheme. That is, when
having lots of free time to do so.
Eriam wrote in this same thread:
> Has anyone already mentionned wxPerl (Gtk + Win32 + OSX with native
> look & feel and controls) ?
>=20
> It works like a charm with POE. =20
I've tried it - too briefly I reckon - and it looks promising. But
then I had some compile problems with the code produced by the GUI
builder and left my experiments there for the time being. I also had
the impression that the documentation as to what you can do and how to
do it from the Perl perspective is lacking, but I might be wrong on
that.
Al
| |
|
|
|
|
|