How can I add extra data to wx.TextCtrl widgets?
At the moment I’m using the GetToolTipString() method to add the extra data but this is obviously wrong.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re talking about adding data to it like you can with a ComboBox or ListBox, well, you can’t. That’s not a part of the TextCtrl. However, you could probably subclass wx.TextCtrl and add that functionality or just create some kind of data structure that is keyed on the data you add to the control.