[Fwd: Re: [wxPython-users] Hello]

kortmann at ideaworks.com kortmann at ideaworks.com
Tue Aug 22 12:48:20 PDT 2006


Considering I ran into 72 emails this morning/or so, I would agree with
you that the mailing list does seem rather active still :), and friendly
also.

I am trying to use more than one panel because the wxpml plotpanel did not
have a position.  I have a button toolbar, which is a panel with 9 horiz.
buttons,  on the left side that is 150 pixels wide.  I have a panel on the
bottom that has 10 textcontrols explicitly placed in positions to make
them look as if they were aligned with a grid.  I was using more than one
panel because it seemed cleaner to me to create a toolbar panel and an
info panel, and then keep the graph panel(the only one that changes
through every stage) seperate.  I have tried to use the panel.Show(True)
and panel.Show(False) commands but when I do this I end up with really
wierd behavior after i make the Graph panel hidden to ask for more input
from the user, like my toolbar buttons do not work, unless i switch
windows and come back, then when i click on the next button on the
toolbar, or when i click on the panel where the graph was, it gives me
more wierd behavior and it also makes it to where i can not click on
anything again.

I am thinking about trying to just use the MatPlotLib instead ofusing the
wxmpl, but since i had gotten this far it seemed counterproductive.  The
only problem is switching panels, but this does not seem to be a good
thing to be doing so I will search for an alternative way.

-Kenny


---------------------------- Original Message ----------------------------
Subject: Re: [wxPython-users] Hello
From:    "Werner F. Bruhin" <werner.bruhin at free.fr>
Date:    Tue, August 22, 2006 2:45 am
To:      wxPython-users at lists.wxwidgets.org
--------------------------------------------------------------------------

Hi,

kortmann at 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






More information about the wxpython-users mailing list