[wxPython] Get Object by Id?

hi,

i have the id of an object (in ths case: a wxTextCtrl). How can i get a
reference to this Object?? e.g. to call a function like SetValue()???

Rob Cakebread wrote:
Is this what you mean?

txtID = wxNewId()

spam = wxTextCtrl(panel, txtID, "", wxPoint(col, row), wxSize(width,

height))

spam.SetValue("taco")

No,
i have the id of a textctrl, but nothing else... the id is my pointer
to the e.g wxTextCtrl. But how can i use THISwxTextCtrl.SetValue()??
i need a something like

      DestObject=FindObjectbyId (mystoredId)

so that i can use the object like this:

      DestObject.SetValue("FooBar")

Do you how i can do that??

thx, reen

···

----
Rene Freund nur ein toter bug ist ein guter bug
rene@meder.de

i have the id of a textctrl, but nothing else... the id is my pointer
to the e.g wxTextCtrl. But how can i use THISwxTextCtrl.SetValue()??
i need a something like

      DestObject=FindObjectbyId (mystoredId)

so that i can use the object like this:

      DestObject.SetValue("FooBar")

Do you how i can do that??

If you know it is a child or grandchild (or further down) of a certain
window then you can use

    destObject = window.FindWindowById(mystoredId)

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!