[wxPython-users] Another sizer question
Christopher Barker
Chris.Barker at noaa.gov
Mon Nov 12 11:21:19 PST 2007
Alun Griffiths wrote:
> tried both hints but the problem is still there. PlotFrame.__init__()
> also sets a sizer - is the problem that there is some interference
> between the sizers?
darn. maybe.
The best way to get help with this sort of thing is to make a
small-as-possible, complete runnable app that demonstrates the problem.
I"d start by using a plain wx.Panel instead of a pot panel, to make sure
that it's related to the plot window or something else.
But first:
> self.plot = PlotFrame(self)
are you trying to put a wx.Frame on a wx.Frame? You can't do that! A
wx.Frame is top-level window, you need to put a wx.Window or wx.Panel on
it, not another wx.Frame.
Are you use wxmpl? I recommend it, it makes it a bit easier to embed MPL
in wx.
http://agni.phys.iit.edu/~kmcivor/wxmpl/
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list