Re: [Boa Constr] newbie question -- using Boa for creating a drawing canvas
Status: Beta
Brought to you by:
riaan
From: John B. <jbe...@ya...> - 2002-07-04 02:30:29
|
Hi John, --- John Boik <joh...@om...> wrote: > Hello: > I am new and hoping to complete an easy (?) project. > In a nutshell, I need > to place a gif pic (a pic of a graph) on a frame, > then draw litle boxes > around points on the graph and collect the > coordinates for the box centers. > Sounds simple enough....but I downloaded Boa and see > that it has no canvas > tab on the Editor window. How does one go about > placing a drawing canvas on > a frame using Boa? I presume that what you mean is that you can't find any form of "Canvas" type control on the Palette. This is not surprising since wxPython has no control of this type. You need to associate a Device Context with the frame and draw to that. There should be an example in the wxPython demo. From a Boa integration point of view your options are either to add the extra code in the __init__ block by hand (along with required event handlers in the module block) or to build a canvas class as a derived class of one of the container classes, maintaining the same initialisation signature as the container class and then use it as a Custom Class (see Boa documentation). John Bell > > Any help is appreciated. John > > John Boik > Oregon Medical Press > www.ompress.com > joh...@om... > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > No, I will not fix your computer. > http://thinkgeek.com/sf > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com |