WxPython, How to fill ListBox with class attributes
<p>I am building a wxpython project, I have a list of elements that are a class instances. Each of this elements has an attribute <code>title</code>. In a ListBox I want to display only the titles, and when the title selected, after we GetSelection from listbox, the instance should be returned and not just the title. Is this achievable ?</p>

<p><strong>Note:</strong> Searching for the string is out of question because names(titles) may be recurring.</p>

<p>Thank you.</p>

<ul>
<li>Put your instances in a list</li>
<li>Use <code>GetSelection</code> to retrieve the index of the item you selected from the listbox</li>
<li>Get the corresponding instance from that index in the list</li>
</ul>

python listbox wxpython