Using an object inside a class

Jonno jonnojohnson at gmail.com
Mon Jan 23 18:32:41 EST 2012


On Mon, Jan 23, 2012 at 4:57 PM, Ian Kelly <ian.g.kelly at gmail.com> wrote:

>
> By the way, looking at your object hierarchy more closely, isn't
> "app.frame.graph_panel" going to end up being the same thing as just
> "self.figure"?  Why not just use the latter and remove the reliance on
> finding the correct frame?
>

I could do that however the app ultimately has more than one notebook tab
that I need to be able to access the figure object from.

Perhaps I should step back and ask the question how to create an app with
multiple notebook pages with a figure in one and have that figure object be
accessible to all the notebook pages.
I created this architecture following the example here:
http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_wx5.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120123/b6b23fbe/attachment-0001.html>


More information about the Python-list mailing list