471,310 Members | 1,253 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

Adding a DB regs to a wx listbox

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?

Jun 12 '07 #1
1 1425
self.list_box_1_copy.Append( your_item )

In the wxWidgets help:

http://www.wxwidgets.org/manuals/2.8...ntrolwithitems

And in the wxPython help:

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

Regards,
- Jorgen

On 6/12/07, Marcpp <ma****@gmail.comwrote:
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
Jun 12 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by rahul8143 | last post: by
2 posts views Thread by John R. | last post: by
3 posts views Thread by Husam | last post: by
6 posts views Thread by Papa.Coen | last post: by
14 posts views Thread by Paul_Madden via DotNetMonster.com | last post: by
2 posts views Thread by =?Utf-8?B?TWFobW91ZCBTaGFiYW4=?= | last post: by
4 posts views Thread by ranjini ns | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.