VListBox GetFirstSelected

Hello all,

I'm trying to use the GetFirstSelected method of VListBox. I'm confused as
to which arguments to pass. If I pass nothing (as is suggested by the
documentation at http://www.wxpython.org/docs/api/wx.VListBox-class.html, I
get the error:

  File "C:\Python23\Lib\site-packages\wx\windows.py", line 1709, in
GetFirstSelected
    return _windows.VListBox_GetFirstSelected(*args, **kwargs)
TypeError: VListBox_GetFirstSelected() takes exactly 2 arguments (1 given)

So I guess I have to pass an argument. When trying to find out what this
argument might be, I stumbled across the wx.NET documentation
(http://wxnet.sourceforge.net/apiref/wx/VListBox.html). I know this is
probably quite different, but I noticed that their GetFirstSelected method
takes an argument which is a cookie which is subsequently passed to
GetNextSelected(). The wxPython documentation describes the GetNextSelected
method as follows:

GetNextSelected(*args, **kwargs)
GetNextSelected(self, unsigned long cookie) -> PyObject

But, I'm not really sure what that means. How do I create a cookie to pass
to these routines? Incidentally, passing None as an argument gives the
following error:

  File "C:\Python23\Lib\site-packages\wx\windows.py", line 1709, in
GetFirstSelected
    return _windows.VListBox_GetFirstSelected(*args, **kwargs)
TypeError: null reference

Any help or advice would be much appreciated.

Many thanks,

/\ |) /\ |\/|

Dr Adam Carter, Applications Consultant, EPCC, The University of Edinburgh
+44 131 650 6009 | adam@epcc.ed.ac.uk | http://www.epcc.ed.ac.uk/~adam