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

Kaipo Chang@Taiwan decomposer17179 at gmail.com
Wed Apr 28 12:07:56 EDT 2010


Thanks a lot.
I'll check the wx list.

CM 提到:
> On Apr 28, 9:13 am, "Kaipo Chang at Taiwan" <decomposer17... at gmail.com>
> wrote:
>> 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.
> 
> Che



More information about the Python-list mailing list