[issue11460] Attribute Error

saradayerramalle report at bugs.python.org
Thu Mar 10 10:13:18 CET 2011


New submission from saradayerramalle <saradasri_y at yahoo.co.in>:

Hi.
I am new to Python.
I have an ABC.py file in which it has a checkbox.
An instance of the "wx.CheckBox" is created with name "chkbox1".
Initial value is set and its binded to the "wx.EVT_CHECKBOX" with a function xxx().
Now, I am importing ABC.py to XYZ.py.
How to access the event of the checkbox XYZ.py?

If i try to access it as ABC.chkbox1.SetVaule(), its giving the error as ""Attribute Error: type object 'ABC' has no attribute 'chkbox1'"".
Please help me ASAP.

----------
messages: 130494
nosy: syerrama
priority: normal
severity: normal
status: open
title: Attribute Error
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11460>
_______________________________________


More information about the Python-bugs-list mailing list