self.list_box_1_copy.Append( your_item )

In the wxWidgets help:

http://www.wxwidgets.org/manuals/2.8.0/wx_wxcontrolwithitems.html#wxcontrolwithitems

And in the wxPython help:

http://www.wxpython.org/docs/api/wx.ItemContainer-class.html

Regards,
- Jorgen

On 6/12/07, Marcpp <[EMAIL PROTECTED]> wrote:
> Hi, I need add to a listbox a list of items extracted from a database.
> This is that I've do:
>
> class tasques(wx.Frame):
>     def __init__(self, *args, **kwds):
> ....
>         self.list_box_1_copy = wx.ListBox(self, -1, choices=[],
> style=wx.LB_SINGLE|wx.LB_ALWAYS_SB)
> ...
>
> How I add the list to choices?
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to