Changeset 8575


Ignore:
Timestamp:
10/03/09 07:29:28 (2 years ago)
Author:
azawawi
Message:

[Padre] (win32) Display a message box under wperl.exe when 'padre --version' is requested

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/script/padre

    r8551 r8575  
    7070 
    7171if ($VERSION) { 
    72     print "Perl Application Development and Refactoring Environment $Padre::VERSION\n"; 
     72    my $msg = "Perl Application Development and Refactoring Environment $Padre::VERSION\n"; 
     73    if ( $^O eq 'MSWin32' and $^X =~ /wperl\.exe/ ) { 
     74 
     75        # Under wperl, there is no console so we will use 
     76        # a message box 
     77        require Padre::Wx; 
     78        Wx::MessageBox( 
     79            $msg, 
     80            Wx::gettext("Version"), 
     81            Wx::wxOK(), 
     82        ); 
     83    } else { 
     84        print $msg; 
     85    } 
    7386    exit(0); 
    7487} 
Note: See TracChangeset for help on using the changeset viewer.