Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Portable GUI Toolkit

by rasta (Hermit)
on Sep 11, 2003 at 13:18 UTC ( [id://290673]=perlquestion: print w/replies, xml ) Need Help??

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

Hello Monks,

I want to write simple portable GUI application which should produce reports.

Could you, fellow monks, give me an idea which packages of Portable GUI toolkits and Report generators could satisfy my needs?

-- Yuriy Syrota

Replies are listed 'Best First'.
Re: Portable GUI Toolit
by Abigail-II (Bishop) on Sep 11, 2003 at 13:24 UTC
    Probably the most wellknown GUI module for Perl is Tk. But there's also a gtk interface, and there are a few more. A search on CPAN should reveal them.

    As for report generator tools, there's a lot already buildin in Perl, like formats and print(f). For more advanced stuff, it all depends what kind of reports you want to create from which data in which format.

    Search CPAN to see if there's something that's useful for you.

    Abigail

      Although GTK+ is portable to a lot of platforms, and Perl is portable to a lot of platforms, the Perl-GTK+ interface doesn't work on Win32 (at least, that was the situation when I tried it ~6 months ago).

      Tk or Wx are probably the best bets for portable GUIs under Perl.

      ----
      I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
      -- Schemer

      Note: All code is untested, unless otherwise stated

      I would like to offer multi-font reports with possibility to place grafical objects, the program should provide report preview and has possibility easely change report templates (at least for power users).

      I think it could be some XML based report generator...


      -- Yuriy Syrota
        Perl, XHTML1.1, <insert favorite web server here>
        Here's all the portable interface toolkit you need.
Re: Portable GUI Toolit
by naChoZ (Curate) on Sep 11, 2003 at 13:56 UTC
Re: Portable GUI Toolit
by jdtoronto (Prior) on Sep 11, 2003 at 15:28 UTC
    The most portable are Perl/Tk and WxPerl - Tk is more mature - widely transportable ( I use on Win98, Win2k, WinXP, FreeBSD, Linux and I have a client using a Tk app of mine on HP/UX. )

    WxPerl looks very nice, seems to be highly portabletually used it yet.

    jdtoronto

Re: Portable GUI Toolit
by Albannach (Monsignor) on Sep 11, 2003 at 17:07 UTC
    I think Prima is defintely work a look, though it is relatively new. It seems to have a lot of nice features including a nice GUI designer, and works with both Win32 and X at least.

    For reports, you can get a lot of bang for your buck using HTML, unless pagination is a serious issue, and PDFs could also be an option. I still use format and write a lot, with some limited font manipulation by inserting printer control codes in the output stream. Yes I am a walking anachronism ;-)

    Please see also (GUI) Windows Programming FAQ and your local Super Search as GUIs and report generation do get discussed here fairly often.

    --
    I'd like to be able to assign to an luser

Re: Portable GUI Toolit
by LordWeber (Monk) on Sep 11, 2003 at 15:04 UTC
    Re: Portable GUI Toolit
    by kirbyk (Friar) on Sep 11, 2003 at 16:54 UTC
      This isn't appropriate for all solutions, but for portability and good user interface, there's a lot to be said for making it a web app. Everyone already knows how to use a browser on their platform of choice, it's easy to display graphics, there's a refined toolkit of useful widgets, and it's a well understood space.

      If all you're doing is displaying reports from, say, a database, it'd be hard to beat this approach.

      -- Kirby

    Re: Portable GUI Toolit
    by adrianh (Chancellor) on Sep 11, 2003 at 14:53 UTC
      ... which packages of Portable GUI toolkits ...

      Can you defined "portable"? Macs? Win? Linux? Vax?

        Sure,
        I mean Linux, FreeBSD and Windows.


        -- Yuriy Syrota
    Re: Portable GUI Toolit
    by hannibal (Scribe) on Sep 12, 2003 at 04:40 UTC
      gtk2-perl will run on Windows, and although there are no binaries available at the moment, there are plans to release some as soon as it hits 1.0 (very soon)
    Re: Portable GUI Toolit
    by richardX (Pilgrim) on Sep 11, 2003 at 21:35 UTC
      If you want a totally flexible report generation tool, I would look at older tools like RPG and look at the script language syntax. You could write a RPG like psuedo language in Perl that would give you the same power.

      Richard

      There are three types of people in this world, those that can count and those that cannot. Anon

    Re: Portable GUI Toolit
    by ravish (Acolyte) on Sep 12, 2003 at 03:47 UTC
      Hi, I would suggest use PERL/QT module. It is portable and also
      gives lot of flexibility.
      You can find this on search.cpan.org.
      There is also QT designer interface is available


      Thanks
    perlcc etc with gui?
    by mattr (Curate) on Sep 12, 2003 at 13:56 UTC
      Hi All,

      I've been wondering about this for a while and always figured I'd hack at it instead of asking but..

      Has anybody succeeded in using anything like perlcc or other tools to package an entire gui perl program (on windows at least) as a single exe file? I did see something that seemed to make a virtual file system inside the exe for your programs and would run a shell inside it, but I couldn't figure out if it was annoyware or not.

          Thank you mandog, that is some good info!

          Matt

    Log In?
    Username:
    Password:

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

    How do I use this?Last hourOther CB clients
    Other Users?
    Others having an uproarious good time at the Monastery: (4)
    As of 2024-04-24 21:59 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found