Weird bug with wxPython 2.8.4.2 Demo

Hi Mike,

···

On 8/15/07, Mike Driscoll wrote:

I noticed today that if I run "Threads" demo in the "Process and Events"
category, it screws up the entire demo. If you run it and then close it,
you get a little dialog that tells you to wait for the threads to die,
then it disappears and the log messages are updated. However, if I go to
look at a different demo now, none of the others will show up.

The left-most notebook tab will change if I double-click an item in the
tree on the left, but the description is still for the Threads demo and
the demo tab only shows the "Show Threads sample" button. I have to close
the entire wxPython Demo program and reload it to regain access to the
demos.

I am on Windows XP SP2 with Python 2.4. Anyone else noticing this?

I have noticed the same thing, on Windows XP, Python 2.5, wxPython
2.8.4.2 ansi. It's not really clear what is going on...

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

The problem is line 219:

self.win.Close()

This might work:

if hasattr(self, “win”) and self.win:

self.win.Close()

  1. in case the user changed to some other demo before clicking on the “show threads sample” button, self.win is not defined.

  2. the window gets destroyed in OnCloseWindow, calling Close for an already destroyed objects causes the problem.

Speaking of the demo, the SplitTree demo screws up the entire demo :stuck_out_tongue:

···

On 8/15/07, Andrea Gavana andrea.gavana@gmail.com wrote:

Hi Mike,

On 8/15/07, Mike Driscoll wrote:

I noticed today that if I run “Threads” demo in the “Process and Events”

category, it screws up the entire demo. If you run it and then close it,
you get a little dialog that tells you to wait for the threads to die,
then it disappears and the log messages are updated. However, if I go to

look at a different demo now, none of the others will show up.

The left-most notebook tab will change if I double-click an item in the
tree on the left, but the description is still for the Threads demo and

the demo tab only shows the “Show Threads sample” button. I have to close
the entire wxPython Demo program and reload it to regain access to the
demos.

I am on Windows XP SP2 with Python 2.4. Anyone else noticing this?

I have noticed the same thing, on Windows XP, Python 2.5, wxPython
2.8.4.2 ansi. It’s not really clear what is going on…

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”

http://xoomer.alice.it/infinity77/


To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org


http://code.google.com/p/lh-abc