[New-bugs-announce] [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>:

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>

More information about the New-bugs-announce mailing list