Help for access method of wxPython object

Neotaku neotaku at free.fr
Tue Apr 24 08:27:14 EDT 2001


Hello,

    Here is my problem, i take an object control from a windows like this
    obj = self.GetChildren()[26]
    print obj.GetName()

    self is a windows and the 26th object is a textcontrol. so this code
work well and i can get the control's name but when i want to do that :
    obj.SetValue("Testing")

    i have always this error : AttributeError : 'wxWindowPtr' instance has
no attribute 'SetValue'
    i don't understand why it doesn't work ? the only way it can work is
like this : self.MyTextCtrl.SetValue("Testing")

Thanks a lot for you help

Using : wxPython, Boa Constructor, NT4 Win32




More information about the Python-list mailing list