Reputation: 995
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.
Upvotes: 0
Views: 145
Reputation: 33071
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.
Upvotes: 1
Reputation: 113948
ummmm my_text_control.SetValue("some value to set")
??
If you clarify your question ill clarify my answer
Upvotes: 0