user1401950
user1401950

Reputation: 995

How to add extra data to a wx.TextCtrl?

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

Answers (2)

Mike Driscoll
Mike Driscoll

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

Joran Beasley
Joran Beasley

Reputation: 113948

ummmm my_text_control.SetValue("some value to set") ??

If you clarify your question ill clarify my answer

Upvotes: 0

Related Questions