Yes. I mentioned DialogPick because you can look at its definition (in lbc.py) to see how the listbox is handled. In general, the Lbc canned dialogs are built with the Lbc API, so their definitions are useful examples.
Jamal On 6/3/2010 10:49 AM, Alex Hall wrote:
The DialogPick is a "canned" dialog; I need to add a listbox and a textCtrl to the dialog, as well as a couple buttons, so I was hoping to be able to build my own Dialog object and add the necessary controls. On 6/3/10, Jamal Mazrui<empower@xxxxxxxxx> wrote:Look at test_lbc.py. The DialogPick method uses a listbox with a pair of Python lists corresponding to names and values. Each name has a corresponding value. The listbox shows names, but returns values. Values can be the same as names, but they do not have to be. For example, you might show titles of songs in the listbox, but when the user picks one to play, you want the path of the MP3 file on disk to be returned by that method. So, you set up two parallel lists as parameters, where each song in the names list corresponds to a path in the values list. If you do not need different values from names, just set the values list equal to the names list. Jamal On 6/3/2010 9:33 AM, Alex Hall wrote:
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind