Adding a DB regs to a wx listbox

Jorgen Bodde jorgen.maillist at gmail.com
Tue Jun 12 11:14:43 CEST 2007


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 <marcpp at gmail.com> 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
>



More information about the Python-list mailing list