I just signed up for this mailing list today. I was wondering how oftem
people still use it and what not. All of the documentation I have found
for wxPython seems to have been last updated around 2004.
The reason I am joining the list is because I am dealing with a program
inwhich I have multiple wx.Panels. In which I would like to display a
panel, and then when I move on to the next screen have it not be shown
anymore.
the exact layout would be a self created toolbar on the left side with
buttons to step back and forth through the program. A panel on the bottom
that just has a grid of 12 text controls that are inputted from the user
and saved to global variables. And the final panel is on the upper right
in which the user will work with text input, and graphing input.
If I do not use the graph output going from panel to panel seemed to be
fairly simple by just using the same self.MyPanel, and then destroying it
and recreating it as Another panel was needed. The problem is when i go
to destroy the graph panel, using wxmpl, I get errors as such
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
delete
d, attribute access no longer allowed.
Does anyone know of a better way to go about switching from panel to panel?
Instead of destroying and recreating the panels, look into using the
"<somepanelobject>.Show(False)" method. This will hide the panel when
needed. When you want to show the window again, simply do a
<somepanelobject>.Show(True)
For screen layout, I'd suggest using a series of SplitterWindow
instances. Or you could statically place a bunch of wx.Panel objects
on the screen and simply place the child controls into them (if you
have no need to resize the regions).
In any case, give the demo program a GOOD looking over. It is a huge
help up the learning curve.
Good luck!
Christoper L. Spencer
CTO ROXX, LLC
4515 Leslie Ave.
Cincinnati, OH
45242
TEL: 513-545-7057
EMAIL: chris@roxx.biz
···
On Mon, 21 Aug 2006 14:56:57 -0700 (PDT), kortmann@ideaworks.com wrote:
I just signed up for this mailing list today. I was wondering how oftem
people still use it and what not. All of the documentation I have found
for wxPython seems to have been last updated around 2004.
The reason I am joining the list is because I am dealing with a program
inwhich I have multiple wx.Panels. In which I would like to display a
panel, and then when I move on to the next screen have it not be shown
anymore.
the exact layout would be a self created toolbar on the left side with
buttons to step back and forth through the program. A panel on the bottom
that just has a grid of 12 text controls that are inputted from the user
and saved to global variables. And the final panel is on the upper right
in which the user will work with text input, and graphing input.
If I do not use the graph output going from panel to panel seemed to be
fairly simple by just using the same self.MyPanel, and then destroying it
and recreating it as Another panel was needed. The problem is when i go
to destroy the graph panel, using wxmpl, I get errors as such
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
delete
d, attribute access no longer allowed.
Does anyone know of a better way to go about switching from panel to panel?
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Hi,
kortmann@ideaworks.com wrote:
I just signed up for this mailing list today. I was wondering how oftem
people still use it and what not.
You will see, I think it is pretty active and more importantly one of the most friendly and helpful list I know of.
All of the documentation I have found
for wxPython seems to have been last updated around 2004.
Have you seen the new API doc?
http://www.wxpython.org/docs/api/
Another good source for information is the wiki.
http://wiki.wxpython.org/
The reason I am joining the list is because I am dealing with a program
inwhich I have multiple wx.Panels. In which I would like to display a
panel, and then when I move on to the next screen have it not be shown
anymore.
the exact layout would be a self created toolbar on the left side with
buttons to step back and forth through the program. A panel on the bottom
that just has a grid of 12 text controls that are inputted from the user
and saved to global variables. And the final panel is on the upper right
in which the user will work with text input, and graphing input.
If I do not use the graph output going from panel to panel seemed to be
fairly simple by just using the same self.MyPanel, and then destroying it
and recreating it as Another panel was needed. The problem is when i go
to destroy the graph panel, using wxmpl, I get errors as such
Why do you use multiple panels?
Are you just wanting to do a new plot?
I use matplotlib (not yet using the wxmpl), but I assume you could still do something like:
self.figure.clear() # is a matplotlib.figure
gc.collect()
and then create the new plot on the same figure.
Werner
···
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
delete
d, attribute access no longer allowed.
Does anyone know of a better way to go about switching from panel to panel?
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org