wxPython problem: Can't assign size of plot.PlotCanvas

CM cmpython at gmail.com
Wed Apr 28 16:09:04 CEST 2010

On Apr 28, 9:13 am, "Kaipo Chang at Taiwan" <decomposer17... at gmail.com>
> I wrought something like
> client = plot.PlotCanvas(childFrame2, 2,pos=(300,400),size=(100,200),
> name=text1)
> But the plotcanvas kept filling all the childFrame.
> Is there a way to Really adjust the size of ploscanvas?
> Thanks in advance for your help.

In wxPython, if you add a widget directly to a frame it will
automatically expand to fill the frame.  Instead, add a wxPanel to the
frame and add your plot canvas to that panel.

wxPython questions are best asked on the wxPython list, which is also
on Google Groups or you can email subscribe to it.


More information about the Python-list mailing list