Re: [Boa Constr] Colourpicker
Status: Beta
Brought to you by:
riaan
From: Riaan B. <riaan@e.co.za> - 2006-11-23 14:52:10
|
Hi Riccardo, Riccardo Tonon wrote: > Hi, > > Could you help me with a problem. > > I'm writing an application in boa and I need to have a colour picker. > How do I add it to the "Palette"? > > I'm using boa from CVS and wxpython 2.7. > > If I add it directly in the code then the boa Designer gives me errors. > > I'd like to insert it without problem in the Designer window using the > palette. > > How can I do it? Adding controls to the palette is not that simple (although examples are provided, Plug-ins/UserCompanions.plug-in.py) The simplest way to handle adding controls not directly supported by Boa, is to put a wx.Panel in the place of the control that you want to use, and then create your control in that panel after the call to self._init_ctrls() in the __init__method of your frame. Cheers, Riaan. |