Skip Menu |

This queue is for tickets about the Wx CPAN distribution.

Report information
The Basics
Id: 30898
Status: resolved
Priority: 0/
Queue: Wx

People
Owner: mbarbon [...] users.sourceforge.net
Requestors: JHUCKABY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.74
  • 0.80
Fixed in: (no value)



Subject: Wx windows are always inactive in Mac OS X 10.5.1 (Leopard)
I cannot seem to get a Wx window to activate using Wx on Mac OS X 10.5.1 (Leopard). All windows show up inactive, and I cannot interact with them at all. I tried SetTopWindow() to no avail. I have a stock Mac OS X 10.5.1 install with no 3rd party extensions, running on an Intel 15" MacBook Pro with 2 GB RAM. I tried both the Wx 0.74 which ships with Mac OS X 10.5.1, and the latest 0.80 distribution. Same effect on both. Example code: #!/usr/bin/perl use strict; use Wx; package myApp ; use base 'Wx::App'; sub OnInit { return(@_[0]) ;} package myFrame ; use base 'Wx::Frame'; use Wx qw( wxDEFAULT_FRAME_STYLE ); sub new { my $app = shift ; my( $frame ) = $app->SUPER::new( @_[0] , -1, 'wxPerl Test' , [100,100] , [400,300] ) ; return( $frame ) ; } package main ; use Wx ; my $myApp = myApp->new() ; my $win = myFrame->new() ; $win->Show(1) ; $myApp->SetTopWindow( $win ) ; $myApp->MainLoop(); 1; # This is perl, v5.8.8 built for darwin-thread-multi-2level # Darwin joebook 9.1.0 Darwin Kernel Version 9.1.0: Wed Oct 31 17:46:22 PDT 2007; root:xnu-1228.0.2~1/RELEASE_I386 i386
On Wed Nov 21 12:42:47 2007, JHUCKABY wrote: Show quoted text
> I cannot seem to get a Wx window to activate using Wx on Mac OS X > 10.5.1 (Leopard). All > windows show up inactive, and I cannot interact with them at all.
Same here, but then I remembered that Macs ship with wxPerl. Executing the program with /usr/bin/wxPerl solved the problem for me. Cheers, Ovid
Subject: Re: [rt.cpan.org #30898] Wx windows are always inactive in Mac OS X 10.5.1 (Leopard)
Date: Sun, 10 Aug 2008 22:27:17 -0700
To: bug-Wx [...] rt.cpan.org
From: "Joseph Huckaby" <jhuckaby [...] cpan.org>
Ah, thank you Ovid, I shall try that! - Joe On Sat, Aug 9, 2008 at 1:00 PM, Curtis 'Ovid' Poe via RT <bug-Wx@rt.cpan.org Show quoted text
> wrote:
Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=30898 > > > On Wed Nov 21 12:42:47 2007, JHUCKABY wrote:
> > I cannot seem to get a Wx window to activate using Wx on Mac OS X > > 10.5.1 (Leopard). All > > windows show up inactive, and I cannot interact with them at all.
> > Same here, but then I remembered that Macs ship with wxPerl. Executing > the program with /usr/bin/wxPerl solved the problem for me. > > Cheers, > Ovid > > >
Recent wxPerl releases should now warn when not run using 'wxPerl'. Regards, Mattia