matplotlib, wxPanel inside a wxPanel

2006-08-12 Thread Sam
Hello, I'm currently creating a GUI, which consists of a main frame that contains a menu bar,a toolbar and an empty panel, let's call it main_panel. Ideally, I'd like the following functionality: upon choosing an item from the menu bar, a particular graph will be displayed inside main_panel. Now

Re: matplotlib, wxPanel inside a wxPanel

2006-08-12 Thread ajaksu
Sam wrote: Hello, Hi there Sam :) I'm beginning to think that what i'm trying to do isn't actually possible, and that i'll need to put it in a frame instead, which is a pity. Indeed, if that is the case... as I'll need to do exactly that! But see below ;) On the other hand, when i create

Re: matplotlib, wxPanel inside a wxPanel

2006-08-12 Thread ajaksu
It seems to work (only tested with embedding_in_wx4.py). I guess it's something related to things nesting in a slightly wrong way, right enough to show up but wrong enough to only show up :) I hope this helps. Daniel Substitute embedding_in_wx4.py's CanvasFrame with: class CanvasFrame(wxFrame):

Re: matplotlib, wxPanel inside a wxPanel

2006-08-12 Thread Sam
Hi Daniel, Thanks very much for your quick response! You're right, it was a case of the cut-and-paste blues, and me not really knowing what each part of the code in the examples was actually doing. A couple of things caught me out: first of all, i wasn't calling SetSizer and Fit on the right