http://qs321.pair.com?node_id=121677

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

Untill now I've been mostly on working on windows environment, but two days ago my $HOME puter went dead and that was the last time M$ is gonna crash my machine. So I installed RedHat Linux 7.2 (any comments?) and I want to be more familiar with it. I got very curious about Glade, when I found it on my distro, a sudden smile came to my face when I saw the button 'Project options|Language->Perl'. My question is this: Any considerations on using Glade for developing or or other possibilities? Where to find some easy pointers how to get started with Glade/Perl. I know I can find many with simple web searches, but I wanted to hear your thoghts on this, coz I know there's tons of coding experiece here. Thank you all. (remember, I'm just a novice, but eager to learn) /cab

Replies are listed 'Best First'.
Re: Any easy guides to using Glade/Perl
by Kit (Monk) on Oct 27, 2001 at 00:02 UTC
Re: Any easy guides to using Glade/Perl
by jeroenes (Priest) on Oct 27, 2001 at 01:01 UTC
    Glade looks nifty and all, but what is different that is uses POE perl. Meaning, event-driven OO perl. It's something totally different, more like your average C++ GUI suite. Pretty and so on, but just something I don't use, and few people around here.

    Not that it is wrong, or bad, but just little traffic about that around here. I would like some coment from insiders about this, actually. Anybody?

Re: Any easy guides to using Glade/Perl
by riffraff (Pilgrim) on Oct 27, 2001 at 19:30 UTC
    I've used glade before. Not with perl, but with pike. Different language, but I've used it for the same purpose.

    I generally don't use the output directly, myself. What I mean is, well, glade output is xml, pike (for example) has a glade.xml reader. You initialize gnome/gtk, then glade, and tell it to read in the xml file and it generates the ui for you (it uses the libglade library for this). However, for me right now (unless I'm missing something, which is very possible) it's a little hard to make dynamic ui's.

    What I do is use it for a visuallation tool. I rearrange the components until I find something I like, then I use that to generate some handwritten code. It makes it easier for me to know where everything is, to add callbacks and the like.

    Just me...

    riffraff

Re: Any easy guides to using Glade/Perl
by cab (Beadle) on Oct 27, 2001 at 20:13 UTC
    First I'd like to thank everyone for your input. Further on: if you think glade isn't the answer, where should i dig for a good way code w/ KDE? and as i'm babbling how the dnmn do i get newlines for these posts? /cab
      You can include a subset of HTML markup in your nodes.

      Also, before you submit a post, you should this message:

      If something looked unlike you expected it to you might need to check out Writeup Formatting Tips.
      Which might be a good place to start.....

      -Blake

        Point
        Taken
        /cab
      AFAIK, nobody has written a perl-interface to the Qt libs. You seriously need that before considering writing perl GUI stuff for KDE. The problem is that Qt relies havily on macros for their slot mechanism. I think it will be messy to translate those to perl. You'd better stick with GTK, as it looks reasonable under KDE. The drawback is that you can't use the KDE ipc. If you want that, you're limited to C++ for now.

      BTW, I didn't say you shouldn't use glade. It's just that around here nobody seems to use it. I tried it once, and I was impressed by the amount of perlcode that was generated by quickly clicking a window together. Too impressed actually to work with it :-).

Re: Any easy guides to using Glade/Perl
by Lasker (Beadle) on Nov 22, 2001 at 01:39 UTC
    (Disregard this message :P)
      Lol. Looks like good ol' jepri wrote all I said in my previous post. His article happens to be in here too... My memory is the one to blame, so I'm deleting everything I said. Go check his tutorial instead :P