Re: [Boa Constr] PlotCanvas
Status: Beta
Brought to you by:
riaan
From: Werner F. B. <wer...@fr...> - 2007-01-29 10:07:56
|
Hi Craig, Can we take this back to the gmane list, so it goes into the archive and you actually might get better ideas from others. It looks like wx.lib.plot does NOT like to sit on a panel, but works nicer out of the box on a wx.Frame. Attached a small sample, hope this gets you going. I dropped the plot onto a wx.Frame and selected Edit/Add module runner and got some code (_draw1Objects) and changed it call e.g. wx.lib.plot.PolyMaker instead of just PolyMaker from the test code in wx.lib.plot. Werner Craig Monsen wrote: > Werner, > > Thank you for the suggestions. > > My specific problem is getting a plot.Plotcanvas to draw in a window on a > frame. > > I can draw a plot onto a new frame, but when I try to draw it onto a window, > or panel on a parent frame, all I get is a tiny box on the window. I think > this is the plot, but it is not the right size. I don't see any way to > adjust the size with the plotcanvas method. > > I am just a novice, but I am struggling to master this problem. > > Any help would be appreciated. Werner F. Bruhin wrote: > Hi Craig, > > Craig Monsen wrote: >> Trying to get Plot canvas to work with Boa. Figured out how to enable >> the module in the Preferences section. However, I get an error message >> about Unexpected keyword argument 'style'. What am I doing wrong? > Just did a little test and can drop it onto a Frame. > > My Config: > # Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] > # wxPython 2.6.3.3, Boa Constructor 0.5.2 > > > What version of Boa and wxPython are you using? > > Werner > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV |