Platform and version?
--
Robin Dunn
Software Craftsman
http://wxPython.org
> --
> To unsubscribe, send email to wxPython-user...@googlegroups.com
> or visit http://groups.google.com/group/wxPython-users?hl=en
Which 2.8? It's working correctly here with 2.8.11.0.
etherine@devbox:~/ct_scripts/testscripts$ python progdial.py
wx.VERSION_STRING 2.8.9.1
(before) count: 1, keepGoing: True, skip: False
(after) count: 1, keepGoing: True, skip: True
(before) count: 2, keepGoing: True, skip: True
(after) count: 2, keepGoing: True, skip: True
(before) count: 3, keepGoing: True, skip: True
(after) count: 3, keepGoing: True, skip: True
(before) count: 4, keepGoing: True, skip: True
(after) count: 4, keepGoing: True, skip: True
(before) count: 5, keepGoing: True, skip: True
(after) count: 5, keepGoing: True, skip: True
(before) count: 6, keepGoing: True, skip: True
(after) count: 6, keepGoing: True, skip: True
(before) count: 7, keepGoing: True, skip: True
(after) count: 7, keepGoing: True, skip: True
(before) count: 8, keepGoing: True, skip: True
(after) count: 8, keepGoing: True, skip: True
(before) count: 9, keepGoing: True, skip: True
(after) count: 9, keepGoing: True, skip: True
(before) count: 10, keepGoing: True, skip: True
(after) count: 10, keepGoing: True, skip: True
--
etherine@devbox:~/ct_scripts/testscripts$ python progdial.py
wx.VERSION_STRING 2.8.9.1
(before) count: 1, keepGoing: True, skip: False
(after) count: 1, keepGoing: True, skip: True
(before) count: 2, keepGoing: True, skip: True
(after) count: 2, keepGoing: True, skip: True
(before) count: 3, keepGoing: True, skip: True
(after) count: 3, keepGoing: True, skip: True
(before) count: 4, keepGoing: True, skip: True
(after) count: 4, keepGoing: True, skip: True
(before) count: 5, keepGoing: True, skip: True
(after) count: 5, keepGoing: True, skip: True
(before) count: 6, keepGoing: True, skip: True
(after) count: 6, keepGoing: True, skip: True
(before) count: 7, keepGoing: True, skip: True
(after) count: 7, keepGoing: True, skip: True
(before) count: 8, keepGoing: True, skip: True
(after) count: 8, keepGoing: True, skip: True
(before) count: 9, keepGoing: True, skip: True
(after) count: 9, keepGoing: True, skip: True
(before) count: 10, keepGoing: True, skip: True
(after) count: 10, keepGoing: True, skip: True
etherine@devbox:~/ct_scripts/testscripts$ python progdial.py
wx.VERSION_STRING 2.8.11.0
--
Ok, I think I see what's going on. The C++ code treats the skip
parameter as InOut, but I'm wrapping it as if it's output only. In
other words, the C++ code is using an uninitialized value for the
skipped parameter. If there happens to be a true value in the memory
location passed as the C++ skip parameter then that will cause the
progress dialog to assume that skip was already set to false and will
behave accordingly. On your system it appears that the memory location
is not initialized to zero before being used, but on mine it is.
I should be able to fix this, but in the meantime you may want to not
use the can_skip flag.
Thanks Robin
-----Original Message-----
From: wxpytho...@googlegroups.com
[mailto:wxpytho...@googlegroups.com] On Behalf Of Robin Dunn
Sent: Monday, November 01, 2010 5:54 PM
To: wxpytho...@googlegroups.com
Subject: Re: [wxPython-users] ProgressDialog skip parameter always returns
True
--
It will be fixed in the next 2.9.x release and in 2.8.12 if there is one.