develooper Front page | perl.wxperl.users | Postings from July 2011

Wx::Gauge issue

Thread Next
alfahed pm
July 8, 2011 09:21
Wx::Gauge issue
Message ID:
Hi All,

I have wxperl application and it uses Wx::Gauge to show a indeterminate
progress bar while the data is populated. The front end is designed using
xwGlade. The indeterminate progress bar is implemented using threads and
shared variables and it works as expected. After many hurdles I managed to
build an exe of the script using PAR::Packer, but the Gauge behaviour
changed. Following are the issues:

1. Initially the gauge range was set to 0, and there was no issue when the
script is run normally like 'perl', but in the exe format gauge
will not move with the pulse function call. The gauge area shows nothing.

2. After many troubleshooting I was able to find a fix for the above issue.
I set the gauge range to 100 after creating the object and now the gauge
works but the gauge style changed. If I run the script normally like 'perl', a small bar moves to and fro along the gauge area, but in the
exe format bar first fills the entire gauge area and retrieves.

Gauge style when the script is run normally; perl (even if the
range is set 0 or 100, range doesn't matter) :

Gauge style when the exe is run ( range 0 wont show anything) :

So, why is this inconsistency with normal perl script and exe produced by
PAR::Packer ?

I am testing this on Windows 2008.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About