wxmpl question

I am not sure if this would be the right place to ask this question but I
figure there is no harm in asking and if it is the wrong place then just
disregard the questoin.

I am working with 3 seperate panels in a wx.Frame. One panel is used as a
status bar at the bottom displaying data. One of the panels is used as a
custom toolbar on the left side and the other Panel is used for multiple
things, collecting user info, which is displayed at the bottom and then
displaying a graph of data from a file, where the user has to chose
segments of the data, and then the graph needs to be redrawn.

My problem is when i go to destroy the first Graph panel, because there is
user input in between the first and second Graph, i get this error.
Traceback (most recent call last):
  File "c:\python23\lib\site-packages\wxmpl.py", line 1102, in OnActivate
    self.cursor.setNormal()
  File "C:\PYTHON23\Lib\site-packages\wx-2.6-msw-ansi\wx\_core.py", line
13485, in __getattr__
    raise PyDeadObjectError(self.attrStr % self._name)
wx._core.PyDeadObjectError: The C++ part of the PlotPanel object has been
deleted, attribute access no longer allowed.

This only happens when I have clicked the exit button or the File, exit on
themenu, and the Exit dialog pops up. When i click yes, this error prints
out

Traceback (most recent call last):
  File "c:\python23\lib\site-packages\wxmpl.py", line 1102, in OnActivate
    self.cursor.setNormal()
  File "C:\PYTHON23\Lib\site-packages\wx-2.6-msw-ansi\wx\_core.py", line
13485, in __getattr__
    raise PyDeadObjectError(self.attrStr % self._name)
wx._core.PyDeadObjectError: The C++ part of the PlotPanel object has been
deleted, attribute access no longer allowed.
Traceback (most recent call last):
  File "c:\python23\lib\site-packages\wxmpl.py", line 1102, in OnActivate
    self.cursor.setNormal()
  File "C:\PYTHON23\Lib\site-packages\wx-2.6-msw-ansi\wx\_core.py", line
13485, in __getattr__
    raise PyDeadObjectError(self.attrStr % self._name)
wx._core.PyDeadObjectError: The C++ part of the PlotPanel object has been
deleted, attribute access no longer allowed.

Is anyone familiar with these or how i could get rid of them?

Kenny Ortmann wrote:

I am not sure if this would be the right place to ask this question

this is more of a wxPython question than an MPL one, so you might have more luck on wxPython-users.

My problem is when i go to destroy the first Graph panel, because there is

How are you doing that? for the most part, you don't need (and shouldn't) destroy a wxPython window by hand -- let Python's garbage collection take care of it.

If you're a bit more specific as to what you need to do, perhaps someone could suggest another way.

Try to trim this down to the smallest possible example, make that a stand-alone application, post that, and we should be able to help.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

I am not sure if this would be the right place to ask this question but I
figure there is no harm in asking and if it is the wrong place then just
disregard the questoin.

For WxMpl questions, this list is currently the closest thing to a right place. I can also be contacted directly via email.

My problem is when i go to destroy the first Graph panel, because there is
user input in between the first and second Graph, i get this error.

This is a bug that has been fixed in the wxmpl subversion repository. I should probably make another release so no one else has the same problem.

You can grab the latest wxmpl.py from

  http://svn.csrri.iit.edu/mr-software/wxmpl/trunk/lib/wxmpl.py

Ken

···

On Aug 14, 2006, at 3:30 PM, Kenny Ortmann wrote: