You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
|
Feb
(7) |
Mar
(5) |
Apr
(4) |
May
(15) |
Jun
(10) |
Jul
(4) |
Aug
(12) |
Sep
(39) |
Oct
(22) |
Nov
(46) |
Dec
(65) |
2002 |
Jan
(19) |
Feb
(27) |
Mar
(50) |
Apr
(73) |
May
(85) |
Jun
(52) |
Jul
(49) |
Aug
(95) |
Sep
(152) |
Oct
(81) |
Nov
(42) |
Dec
(62) |
2003 |
Jan
(45) |
Feb
(47) |
Mar
(101) |
Apr
(110) |
May
(53) |
Jun
(72) |
Jul
(125) |
Aug
(77) |
Sep
(87) |
Oct
(69) |
Nov
(55) |
Dec
(71) |
2004 |
Jan
(127) |
Feb
(68) |
Mar
(93) |
Apr
(102) |
May
(64) |
Jun
(92) |
Jul
(40) |
Aug
(113) |
Sep
(44) |
Oct
(61) |
Nov
(44) |
Dec
(100) |
2005 |
Jan
(57) |
Feb
(51) |
Mar
(101) |
Apr
(73) |
May
(45) |
Jun
(97) |
Jul
(92) |
Aug
(94) |
Sep
(46) |
Oct
(83) |
Nov
(82) |
Dec
(68) |
2006 |
Jan
(92) |
Feb
(116) |
Mar
(84) |
Apr
(66) |
May
(40) |
Jun
(57) |
Jul
(89) |
Aug
(82) |
Sep
(58) |
Oct
(94) |
Nov
(104) |
Dec
(70) |
2007 |
Jan
(86) |
Feb
(108) |
Mar
(193) |
Apr
(84) |
May
(71) |
Jun
(54) |
Jul
(17) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Mattia B. <mb...@ds...> - 2002-02-15 17:58:21
|
> > > in a textctrl i wish to use wxTE_PROCESS_TAB but this doesn't work... > > > but wxTE_PROCESS_ENTER works... > > > because of this i assume that the mistake is not on my side? > > Somewhat: with wxTE_PROCESS_TAB the textctrl generates key events for > > TAB presses; hovever if you do not handle the key events ( EVT_CHAR ) > > for TAB keys, or Skip() them, this triggers the default behaviour > > ( go to next control ). > > > > HTH > > Mattia > > interesting... ...but as usual I missed to give the last step... > i just want the tab to make a tab... > if the control isn't in a dialog or in a label this works by default... # WARNING: untested, but should ( almost ) work sub OnChar { my( $this, $event ) = @_; if( $event->GetKeyCode == 9 ) { # 9 is the ASCII code for TAB $this->WriteText( "\t" ); } else { $event->Skip; # search for the next handler } } should do... > can you (or someone else) give me an example of how to do this? > i have an EVT_CHAR on the textctrl and it captures every key event... > what do i have to do now that the chars go to the textctrl? Skip() the event ( Skip-ing an event means that wx searches for the next event handler ) > i mean it looks unnecessary to me to capture every pressed key and write it > to the textctrl just to don't loose the tab Regards Mattia |
From: Mattia B. <mb...@ds...> - 2002-02-15 17:49:09
|
> Tomorrow at the German Perl Workshop I will be presenting a wxPerl > tutorial. I just finished the slides and examples (some of which Cool! > borrowed a lot of code from you Mattia...) and I've put them online so > that everyone who is interested can use it. > > You can find it at http://www.pvoice.org/GPW/index.html Regards Mattia |
From: Marco T. <wx...@so...> - 2002-02-15 08:34:21
|
> > in a textctrl i wish to use wxTE_PROCESS_TAB but this doesn't work... > > but wxTE_PROCESS_ENTER works... > > because of this i assume that the mistake is not on my side? > Somewhat: with wxTE_PROCESS_TAB the textctrl generates key events for > TAB presses; hovever if you do not handle the key events ( EVT_CHAR ) > for TAB keys, or Skip() them, this triggers the default behaviour > ( go to next control ). > > HTH > Mattia interesting... i just want the tab to make a tab... if the control isn't in a dialog or in a label this works by default... can you (or someone else) give me an example of how to do this? i have an EVT_CHAR on the textctrl and it captures every key event... what do i have to do now that the chars go to the textctrl? i mean it looks unnecessary to me to capture every pressed key and write it to the textctrl just to don't loose the tab greetings Marco |
From: Mattia B. <mb...@ds...> - 2002-02-14 21:46:23
|
> > > in dialogs, the "tab" key moves to the next control... > > > is it possible to use this feature with some TextCtrl's in a sizer too? > > Not tested, but putting the textctrls in a wxPanel should work. > > ( of course you can put the panel in a sizer, or a sizer > > in the panel ) > > > > Regards > > Mattia > > yes, works! thanks... > now i can move with "enter" and "tab" through my textctrls... > > in a textctrl i wish to use wxTE_PROCESS_TAB but this doesn't work... > but wxTE_PROCESS_ENTER works... > because of this i assume that the mistake is not on my side? Somewhat: with wxTE_PROCESS_TAB the textctrl generates key events for TAB presses; hovever if you do not handle the key events ( EVT_CHAR ) for TAB keys, or Skip() them, this triggers the default behaviour ( go to next control ). HTH Mattia |
From: Mattia B. <mb...@ds...> - 2002-02-14 21:45:49
|
> I've tried using wxFileDropTarget, but this didn't work, so I tried > wxDropTarget with the full OnData, OnDrop, wxFileDataObject set-up, but > couldn't get that to work. I'm going to do the obvious thing, which is look > for wxWindows examples, which I'll bet are out there, but can folks tell me: > - does wxPerl support all the drag-and-drop stuff? Should I not use the > FileDrop stuff, as I saw described as rather windows specific somewhere? It supports all the Dnd stuff wxWindows supports, _except_ DnD ( and cut'n'paste ) of user-defined data ( planned for a future version ). The rest should work. > - if anyone has a wxPerl drag-and-drop example, that would be great. sf.net/projects/wxperl/ -> samples -> download the samples for 0.06 demo/demo.pl -> Misc -> Drag&Drop shows TextDropTarget and BitmapDropTarget; below there is a FilesDropTarget --cut here-- package DNDFilesDropTarget; use base qw(Wx::FileDropTarget); sub new { my $class = shift; my $listbox = shift; my $this = $class->SUPER::new( @_ ); $this->{LISTBOX} = $listbox; return $this; } sub OnDropFiles { my( $this, $x, $y, $files ) = @_; $this->{LISTBOX}->Clear; Wx::LogMessage( "Dropped files at ($x, $y)" ); foreach my $i ( @$files ) { $this->{LISTBOX}->Append( $i ); } return 1; } --cut here-- BTW the demo for 0.08 was really unpolished, but the code works. HTH Mattia |
From: Jouke V. <jo...@pv...> - 2002-02-14 18:51:27
|
Tomorrow at the German Perl Workshop I will be presenting a wxPerl tutorial. I just finished the slides and examples (some of which borrowed a lot of code from you Mattia...) and I've put them online so that everyone who is interested can use it. You can find it at http://www.pvoice.org/GPW/index.html Have fun! -- *-----------------------------------------------* |Jouke Visser |jo...@pv... | |Perl GUI Geek |http://www.pvoice.org | *-----------------------------------------------* PS: Notice new mailaddress!! |
From: Shapiro, J. <Sha...@lo...> - 2002-02-14 18:38:29
|
I've gotten wxPerl installed and am enjoying it immensely. Thanks for the help so far. Now I'm trying to use drag-and-drop. I just want to drop files onto my app. (I've got <SOFTPKG NAME="Wx" VERSION="0,08,0,0">, on Win32, ActiveState) I've tried using wxFileDropTarget, but this didn't work, so I tried wxDropTarget with the full OnData, OnDrop, wxFileDataObject set-up, but couldn't get that to work. I'm going to do the obvious thing, which is look for wxWindows examples, which I'll bet are out there, but can folks tell me: - does wxPerl support all the drag-and-drop stuff? Should I not use the FileDrop stuff, as I saw described as rather windows specific somewhere? - if anyone has a wxPerl drag-and-drop example, that would be great. Thanks, Jonathan This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. |
From: Marco T. <wx...@so...> - 2002-02-13 08:41:26
|
> > in dialogs, the "tab" key moves to the next control... > > is it possible to use this feature with some TextCtrl's in a sizer too? > Not tested, but putting the textctrls in a wxPanel should work. > ( of course you can put the panel in a sizer, or a sizer > in the panel ) > > Regards > Mattia yes, works! thanks... now i can move with "enter" and "tab" through my textctrls... in a textctrl i wish to use wxTE_PROCESS_TAB but this doesn't work... but wxTE_PROCESS_ENTER works... because of this i assume that the mistake is not on my side? any suggestions/ideas? greetings Marco |
From: Mattia B. <mb...@ds...> - 2002-02-07 21:52:05
|
> # haves to exist: > $this->{text} = Wx::StaticText->new($this, -1, 'example'); $this->{text}->Hide; # or Show( 0 ); > # problem: at startup it is nowhere added... > # so it hangs around at the top of the window > > # after a specific action: > $this->{sizer}->Add($this->{text}, 0); > $this->{sizer}->Layout; > # ok, great... $this->{text} doesn't any longer hang homeless around > # and everything's like it's supposed... # cool ;-) > # after another specific action: > $this->{sizer}->Remove($x); > $this->{sizer}->Layout; > # layout is ok again... but $this->{text} is homeless again > # and is placed somewhere it shouldn't be... $this->{text}->Hide; # or Show( 0 ); > so, my question: > how can i prevent $this->{text} to be on the screen while it has no official > place on the gui? > it has to exist... HTH Mattia |
From: Mattia B. <mb...@ds...> - 2002-02-07 21:52:05
|
> hi all... > > question (wow, what surprise :-)): > > in dialogs, the "tab" key moves to the next control... > is it possible to use this feature with some TextCtrl's in a sizer too? Not tested, but putting the textctrls in a wxPanel should work. ( of course you can put the panel in a sizer, or a sizer in the panel ) Regards Mattia |
From: Marco T. <wx...@so...> - 2002-02-07 15:35:55
|
hello again, i have a sizer which haves to change the number of it's children during the runtime of the program... my code: # haves to exist: $this->{text} = Wx::StaticText->new($this, -1, 'example'); # problem: at startup it is nowhere added... # so it hangs around at the top of the window # after a specific action: $this->{sizer}->Add($this->{text}, 0); $this->{sizer}->Layout; # ok, great... $this->{text} doesn't any longer hang homeless around # and everything's like it's supposed... # after another specific action: $this->{sizer}->Remove($x); $this->{sizer}->Layout; # layout is ok again... but $this->{text} is homeless again # and is placed somewhere it shouldn't be... so, my question: how can i prevent $this->{text} to be on the screen while it has no official place on the gui? it has to exist... any help would be appreciated greetings marco |
From: Marco T. <wx...@so...> - 2002-02-07 15:20:57
|
hi all... question (wow, what surprise :-)): in dialogs, the "tab" key moves to the next control... is it possible to use this feature with some TextCtrl's in a sizer too? greetings marco |
From: Michele B. <mb...@io...> - 2002-01-29 23:00:23
|
Hello! > > my $dialog = Wx::MessageDialog($this, 'message', 'Exiting Worms GUI', > > wxOK | wxCANCEL, wxDefaultPosition); > my $dialog = Wx::MessageDialog->new( .... ); > ^^^^^ Er, of course, I actually wrote the previous email to correct THAT, but then I just did a cut&paste of the previous code forgetting to add the "->new". :-( > > I tried myself the code and, oddly enough, it only works under MSl Windoze. > I'm really surprised it works at all... Ok, with the proper syntax it only works under Windows and still dies with a segmentation fault (error described in previous email) under GNU/Linux. Quite odd. Michele. -- Michele Beltrame http://www.italpro.net/mb/ ICQ# 76660101 - e-mail: mb...@it... |
From: Mattia B. <mb...@ds...> - 2002-01-29 19:54:48
|
> Hi! > > > my $dialog = Wx::MessageDialog($this, 'message', 'Exiting Worms GUI', wxOK > > | wxCANCEL, wxDefaultPosition); > > [...] > > and then Perl Crashes, and I get this message in the console: > > Error while autoloading 'Wx::MessageDialog' at test3.pl line 71 > > Er, I made a mistake. The Dialog should (of course) be initialized calling > the constructor, so that's actually: > > my $dialog = Wx::MessageDialog($this, 'message', 'Exiting Worms GUI', > wxOK | wxCANCEL, wxDefaultPosition); my $dialog = Wx::MessageDialog->new( .... ); ^^^^^ > ...and then ShowModal() should be called. > > I tried myself the code and, oddly enough, it only works under MSl Windoze. I'm really surprised it works at all... > If I use Linux, the program exits with a segmentation fault when ShowModal() > is called. The reported error is: > > ----- > Can't locate object method "ShowModal" via package "Wx::GenericMessageDialog" > (perhaps you forgot to load "Wx::GenericMessageDialog"?) > ----- Regards Mattia |
From: Michele B. <mb...@io...> - 2002-01-29 11:51:44
|
Hi! > my $dialog = Wx::MessageDialog($this, 'message', 'Exiting Worms GUI', wxOK > | wxCANCEL, wxDefaultPosition); > [...] > and then Perl Crashes, and I get this message in the console: > Error while autoloading 'Wx::MessageDialog' at test3.pl line 71 Er, I made a mistake. The Dialog should (of course) be initialized calling the constructor, so that's actually: my $dialog = Wx::MessageDialog($this, 'message', 'Exiting Worms GUI', wxOK | wxCANCEL, wxDefaultPosition); ...and then ShowModal() should be called. I tried myself the code and, oddly enough, it only works under MSl Windoze. If I use Linux, the program exits with a segmentation fault when ShowModal() is called. The reported error is: ----- Can't locate object method "ShowModal" via package "Wx::GenericMessageDialog" (perhaps you forgot to load "Wx::GenericMessageDialog"?) ----- Michele. -- Michele Beltrame http://www.italpro.net/mb/ ICQ# 76660101 - e-mail: mb...@it... |
From: Michele B. <mb...@it...> - 2002-01-29 00:08:19
|
Hi! > Ok, I did that but I get errors, here's my code: If this is ALL your code, you miss some things. Can you post (or send me) the full source program you have, so I can better understand? Thank you, Michele. -- Michele Beltrame http://www.italpro.net/mb/ ICQ# 76660101 - e-mail: mb...@it... |
From: Mattia B. <mb...@ds...> - 2002-01-28 22:34:08
|
> Apologies if this isn't the right place to ask, but I couldn't find anything > in Google or in the mailing list archives.... It's the right place. > I'm trying to start using wxWindows via wxPerl. I'm running with > ActiveState perl on Win NT4, service pack 6. I'm also running under Cygwin, > which has a perl installed (from binaries), but I try to set up my path, > etc., so that I pick up the ActiveState version. > > I downloaded wxMSW-2.2.7-setup.zip and installed it okay (I was able to run > the 'Life' game). You don't need it unless you are compiling wxPerl from sources. > I then went to get Wx-0.08-wxmsw2.2.8-win32.zip. When trying to install it > ppm ran into trouble. It looks like it was caused by 'archname'. > perl -V reports MSWin32-x86-object, while the Wx.ppd file contained: > > <IMPLEMENTATION> > <OS NAME="MSWin32" /> > <ARCHITECTURE NAME="MSWin32-x86-multi-thread" /> > <CODEBASE HREF="wxPerl-0.08-wx-2.2.8-win32.tar.gz" /> > </IMPLEMENTATION> > > Well, I 'fixed' the ppd and installed it anyways, and, surprise surprise, it > doesn't run. You are using one of the 5xx ActiveState builds ( based on perl 5.005 ), while the ppm was compiled against perl 5.6.1 ( 6xx builds ) > So do I need a multi-threadable Perl? Does ActiveState produce one? Do I If they support NT ( and they probably do ), just installing a newer perl should suffice > have to bite the bullet and start compiling my own Perl? I'd really rather > not, as > > - VC++ = $$$$$$ > - mingw = pain No, really not much pain ( but more than using a precompiled version, of course... ) > - I like to give people (most of whom are running in Windows boxes) my cool > Perl apps/scripts, and it's work enough to get people to install > ActiveState, much less my own compiled version. > > If it matters, after I 'installed' wxPerl, I tried running > > #!/usr/bin/perl -w > use Wx; > > which produced a pop-up window saying "Unable to locate wx22_8.dll in > .......", although it was in d:\perl\site\lib\auto\Wx. I hacked that into my > %PATH%, and then got a pop-up with "Unable to locate perl56.dll in .....". > > The window where I start the script says: > > Can't load 'd:/perl/site/lib/auto/Wx/Wx.dll' for module Wx: load_file:The > specified module could not be found > at d:/perl/lib/DynaLoader.pm line 169. > > at ./zz line 4 > BEGIN failed--compilation aborted at ./zz line 4. > Deep recursion on subroutine "Wx::AUTOLOAD" at d:/perl/site/lib/Wx.pm line > 47. HTH Mattia |
From: Mattia B. <mb...@ds...> - 2002-01-28 22:23:38
|
> Could somebody point me in the right direction of making a dialog where if > they click ok it goes ahead and closes the program but if they click cancel > it goes back. I'm new to wxPerl I've tried copying some of the source from > the dialogs sample but it doesn't work, this is what I got: > > sub OnQuit { > my( $this, $event ) = @_; > > my $dialog = Wx::MessageBox( 'Exiting Worms GUI!', 'Message', > wxOK|wxCANCEL, $this); Wx::MessageBox is a function that shows a message box, and then returns one of wxYES, wxNO, wxCANCEL, wxOK, depending on what button the user pressed: it returns an integer, not a dialog object, and you can't call a method on an integer. > if( $dialog->ShowModal == wxID_CANCEL ) { > $dialog->Destroy; Wx::MessageBox does not return a dialog: no need to destroy it. > } else { > $this->Close( 1 ); > } > } > > When I click either Ok or Cancel, I get this error: > > Can't call method "ShowModal" without a package or object reference at > test3.pl > line 72. sub OnQuit { my( $this, $event ) = @_; my $dialog = Wx::MessageBox( 'Exiting Worms GUI!', 'Message', wxOK|wxCANCEL, $this); if( $dialog != wxID_CANCEL ) { $this->Close( 1 ); } } You could as well use Wx::messageDialog directly ( as suggested in another post ). Regards Mattia |
From: Zeke L. <ove...@ks...> - 2002-01-28 21:28:14
|
>I would try I a wxMessageDialog: >my $dialog = Wx::MessageDialog($this, 'message', 'Exiting Worms GUI', > wxOK | wxCANCEL, wxDefaultPosition); >The ShowModal() you called should work fine then. Ok, I did that but I get errors, here's my code: # these are some constants used by Wx::MessageBox use Wx qw(:everything); # called when the user selects the 'Exit' menu item sub OnQuit { my( $this, $event ) = @_; my $dialog = Wx::MessageDialog($this, 'message', 'Exiting Worms GUI', wxOK | wxCANCEL, wxDefaultPosition); if( $dialog->ShowModal == wxID_CANCEL ) { $dialog->Destroy; } else { $this->Close( 1 ); } } and then Perl Crashes, and I get this message in the console: Error while autoloading 'Wx::MessageDialog' at test3.pl line 71 Line 71 is the my $dialog line. All help so far is appreciated greatly. |
From: Zeke L. <ove...@ks...> - 2002-01-28 21:22:10
|
>I'm trying to start using wxWindows via wxPerl. I'm running with >ActiveState perl on Win NT4, service pack 6. I'm also running under Cygwin, >which has a perl installed (from binaries), but I try to set up my path, >etc., so that I pick up the ActiveState version. I have WinME with ActiveState Perl, also have Cygwin. >I downloaded wxMSW-2.2.7-setup.zip and installed it okay (I was able to run >the 'Life' game). Dont know what that is, didnt install it. >I then went to get Wx-0.08-wxmsw2.2.8-win32.zip. When trying to install it >ppm ran into trouble. It looks like it was caused by 'archname'. >perl -V reports MSWin32-x86-object, while the Wx.ppd file contained: All I had to do was unzip the file and then run: ppm install --location=. Wx and it worked for me. |
From: Shapiro, J. <Sha...@lo...> - 2002-01-28 21:15:41
|
Apologies if this isn't the right place to ask, but I couldn't find anything in Google or in the mailing list archives.... I'm trying to start using wxWindows via wxPerl. I'm running with ActiveState perl on Win NT4, service pack 6. I'm also running under Cygwin, which has a perl installed (from binaries), but I try to set up my path, etc., so that I pick up the ActiveState version. I downloaded wxMSW-2.2.7-setup.zip and installed it okay (I was able to run the 'Life' game). I then went to get Wx-0.08-wxmsw2.2.8-win32.zip. When trying to install it ppm ran into trouble. It looks like it was caused by 'archname'. perl -V reports MSWin32-x86-object, while the Wx.ppd file contained: <IMPLEMENTATION> <OS NAME="MSWin32" /> <ARCHITECTURE NAME="MSWin32-x86-multi-thread" /> <CODEBASE HREF="wxPerl-0.08-wx-2.2.8-win32.tar.gz" /> </IMPLEMENTATION> Well, I 'fixed' the ppd and installed it anyways, and, surprise surprise, it doesn't run. So do I need a multi-threadable Perl? Does ActiveState produce one? Do I have to bite the bullet and start compiling my own Perl? I'd really rather not, as - VC++ = $$$$$$ - mingw = pain - I like to give people (most of whom are running in Windows boxes) my cool Perl apps/scripts, and it's work enough to get people to install ActiveState, much less my own compiled version. If it matters, after I 'installed' wxPerl, I tried running #!/usr/bin/perl -w use Wx; which produced a pop-up window saying "Unable to locate wx22_8.dll in .......", although it was in d:\perl\site\lib\auto\Wx. I hacked that into my %PATH%, and then got a pop-up with "Unable to locate perl56.dll in .....". The window where I start the script says: Can't load 'd:/perl/site/lib/auto/Wx/Wx.dll' for module Wx: load_file:The specified module could not be found at d:/perl/lib/DynaLoader.pm line 169. at ./zz line 4 BEGIN failed--compilation aborted at ./zz line 4. Deep recursion on subroutine "Wx::AUTOLOAD" at d:/perl/site/lib/Wx.pm line 47. Thanks for any help, Jonathan This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. |
From: Gaou <t98...@sf...> - 2002-01-28 14:42:44
|
Hi all, I tried wxPerl on MacOS 10.1 (iBook), and although it successfully compiled, all sample programs show the following error. Can anyone help me on this? Thanks in advance. Gaou. ================================== [localhost:Desktop/wxPerl/samples]root# perl hello/hello.pl ClassInfo initialization failed 'wxTimer' at /System/Library/Perl/darwin/DynaLoader.pm line 200. Compilation failed in require at hello/hello.pl line 15. BEGIN failed--compilation aborted at hello/hello.pl line 15. |
From: Michele B. <mb...@it...> - 2002-01-28 11:26:41
|
Hi! > my $dialog = Wx::MessageBox( 'Exiting Worms GUI!', 'Message', > wxOK|wxCANCEL, $this); I would try I a wxMessageDialog: my $dialog = Wx::MessageDialog($this, 'message', 'Exiting Worms GUI', wxOK | wxCANCEL, wxDefaultPosition); The ShowModal() you called should work fine then. Be sure to import the constants, prepending something like: use Wx qw(wxOK wxCANCEL wxDefaultPosition); or: use Wx qw(:everything) Michele. -- Michele Beltrame http://www.italpro.net/mb/ ICQ# 76660101 - e-mail: mb...@it... |
From: Zeke L. <ove...@ks...> - 2002-01-28 04:55:48
|
Could somebody point me in the right direction of making a dialog where if they click ok it goes ahead and closes the program but if they click cancel it goes back. I'm new to wxPerl I've tried copying some of the source from the dialogs sample but it doesn't work, this is what I got: sub OnQuit { my( $this, $event ) = @_; my $dialog = Wx::MessageBox( 'Exiting Worms GUI!', 'Message', wxOK|wxCANCEL, $this); if( $dialog->ShowModal == wxID_CANCEL ) { $dialog->Destroy; } else { $this->Close( 1 ); } } When I click either Ok or Cancel, I get this error: Can't call method "ShowModal" without a package or object reference at test3.pl line 72. and then perl crashes. Any help would be appreciated. |
From: Mattia B. <mb...@ds...> - 2002-01-26 18:43:59
|
> Hi everyone. > > I know there have been plenty of e-mails regarding this, and stupidly, > I ignored them because I never thought I'd be working on a mac. > Now, I have an iBook and I'm kicking myself for not paying > attention to those e-mails. List archives: http://www.geocrawler.com/archives/3/8008/2001/ Look at october-december ( and september, maybe ) > So...what's the deal? Is there wxPerl for OS X? Do I have to build it myself? etc.. Not yet ( it does compile but I don't know if it works ), and yes, you have to compile it yourself. Regards Mattia |