in reply to Re^2: Wx::ProgressDialog, please help
in thread Wx::ProgressDialog, please help

Try this version :)
package crap; use strict; use warnings; use Wx qw[ wxPD_CAN_ABORT wxPD_APP_MODAL wxPD_ELAPSED_TIME wxPD_EST +IMATED_TIME wxPD_REMAINING_TIME ]; use base qw(Wx::ProgressDialog); sub new { my $class = shift; my $max = shift || 10; my $vars = (wxPD_CAN_ABORT| wxPD_APP_MODAL|wxPD_ELAPSED_TIME| wx +PD_ESTIMATED_TIME| wxPD_REMAINING_TIME); my $this = $class->SUPER::new("xp6 progres ($max)", "the progres +s ($max)", $max, undef, $vars); $this->Show(1); return $this; } my $c = crap->new(); for(0 .. 10){ $c->Update($_,"the progress ($_/10)",); select undef,undef,undef,0.3; }
BTW - for posterity, I have WXMSW-2.5.2, Wx-0.20 .

It could be a wxGtk bug, you should ask on the wxper-users list.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re^4: Wx::ProgressDialog, please help
by jettero (Monsignor) on Jul 27, 2004 at 13:26 UTC
    Same thing. It doesn't draw the progress (or anything else) at all until it gets to Update(10) under my .20/2.5.3 GTK install and simply sagfaults under .19/2.5.2 windows install.

    I find it crazy and random that it DOES work for you.

    I wonder if it's my perl version.
    lunix: v5.8.3 built for i686-linux-thread-multi
    winblows: v5.8.3 built for MSWin32-x86-multi-thread

    could be the 5.8.3, could be the threads... What perl version are you using?

    And thanks for your help btw... I will try the list also.

      ActivePerl 5.8.4. I don't think it's 5.8.3 or the threads.

      In your first reply you say Wx-0.19 with wxMSW-2.4.2, but now you say Wx-0.19 with wxMSW-2.5.2, which is it? Did you compile it yourself?

      Its got nothing to do with luck. I think wxGtk2.4 may have a bug, in which case you need to get the 2.5.x version and recompile.

      As for your windows install I think you got some bad binaries, where'd you get'em?

      I hope you contact the list, Good luck

      MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
      I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
      ** The third rule of perl club is a statement of fact: pod is sexy.

        I don't see how it can be a GTK problem, since it manifests (different) under windows as well. I think it's just a 2.4.2 thing.

        I found binaries for 2.5.2 under windows, installing.

        and I'm compliing a 2.5.2 SRPM for lunix.

        {update}: I didn't think the other post went through because it's too far down in the tree to see in my default view... So that's why the two dups above... I wish I wasn't such an idiot out loud.

        No, it's 2.4.2... that was simply a typo. I don't think there even is such a thing. And it can't really be a gtk bug, because it doesn't work in windows either.

        Ah, apparently there is a 2.5.2 version. Silly me, I grabbed the "stable" version.

        And to be honest, I didn't see that you were running the development branch. My mind can't see a difference between 2.4.2 and 2.5.2 until it's obvious that I missed something.

        I'm not really excited about moving to the development branch. I found wxWindows difficult to compile and used binaries. I don't even have a compiler for the windows machine, so unless I can find a binary ppd, I don't think it's going to happen.

        It at least seems clear that it's the 2.4.2 version that's not working quite right. That at least resolves the problem.