How to run Perl script as GUI Windows program? Like Word, Notepad, Calculator etc.

Discussion in 'Perl Misc' started by max, Apr 4, 2007.

  1. max

    max Guest

    How to run Perl script as GUI Windows program? Like Word, Notepad,
    Calculator etc.
     
    max, Apr 4, 2007
    #1
    1. Advertisements

  2. max

    Ian Wilson Guest

    Re: How to run Perl script as GUI Windows program? Like Word, Notepad,Calculator etc.

    max wrote:
    > How to run Perl script as GUI Windows program? Like Word, Notepad,
    > Calculator etc.


    Use perl/Tk or wxPerl
     
    Ian Wilson, Apr 4, 2007
    #2
    1. Advertisements

  3. max

    Sisyphus Guest

    "max" <> wrote in message
    news:euvkua$9bd$-com.hr...
    > How to run Perl script as GUI Windows program? Like Word, Notepad,
    > Calculator etc.


    In addition to Ian Wilson's suggestions, I (naively) expect that Win32::GUI
    might also have something to offer.

    (Be aware that I'm no expert in this, or any other, area.)

    Cheers,
    Rob
     
    Sisyphus, Apr 4, 2007
    #3
  4. max

    Guest

    If you're looking for a simple start:


    $picture_count = 0;
    opendir(PICDIR,'C:\XX\My Pictures');

    while(readdir(PICDIR))
    { $picture_count++; }

    closedir(PICDIR);
    $picture_count = $picture_count - 3;

    use Tk;
    $main = MainWindow->new();
    $main->Label(-text => $picture_count)->pack;
    MainLoop;
     
    , Apr 5, 2007
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. dpackwood
    Replies:
    3
    Views:
    2,152
  2. =?Utf-8?B?Uk4gRGFz?=
    Replies:
    5
    Views:
    8,585
    srajput
    May 23, 2008
  3. Kevin Walzer

    Re: PIL (etc etc etc) on OS X

    Kevin Walzer, Aug 1, 2008, in forum: Python
    Replies:
    4
    Views:
    668
    Fredrik Lundh
    Aug 13, 2008
  4. C. Pohjanraito

    Your word frequency calculator?

    C. Pohjanraito, Dec 17, 2008, in forum: Ruby
    Replies:
    2
    Views:
    317
    David A. Black
    Dec 18, 2008
  5. Xiao
    Replies:
    0
    Views:
    156
  6. Allen
    Replies:
    5
    Views:
    215
  7. Replies:
    6
    Views:
    271
    Tad McClellan
    Apr 14, 2005
  8. hara
    Replies:
    6
    Views:
    347
    Peter Scott
    May 27, 2006
Loading...