A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/078306.html below:

Help for access method of wxPython object

Help for access method of wxPython object Help for access method of wxPython objectNeotaku 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4