Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>It looks like it's complaining about argument 4 not being a wxWindow (hence the <code>argument 4 of type 'wxWindow *'</code> part of the error).</p> <p>Looking at your call, argument 4 is passing <code>parent=self</code>. So, what is <code>self</code>? In other words, what class is the method with this code a part of? Is it something that's a <code>wx.Window</code> or subclass of one, or is it something like an <code>Application</code> or a <code>Progress</code> that isn't?</p> <p>(Actually, given that you're passing <code>parent</code> as a keyword argument, it's just a coincidence that it happened to be in the 4th position in your call to the <code>wx.ProgressDialog</code> constructor and also be in the 4th position to the call to the underlying C++ function, which is what's actually complaining. You'd get the same error if you switched <code>maximum</code> and <code>parent</code>, and I think it would still say <code>argument 4</code> instead of <code>argument 3</code>.)</p> <p>To verify this, try taking out the <code>parent=self</code> in the call that fails, and it should work, or adding <code>parent=object()</code> to the call with just <code>None</code> that works, and it should fail.</p> <p>Of course that doesn't actually <em>fix</em> the problem. But to do that, you have to figure out what you wanted the <code>parent</code> to be and pass that instead of <code>self</code>.</p> <p>PS, I don't think the problem has anything to do with your threading at all.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload