Scott
Have you set an attribute of self.cdP.pnl1.btnSave_d
called Enable to a boolean?
Nigel
···
--- scott <scott@ebbyfish.com> wrote:
Greetings,
I have noticed that sometimes I get an error when I
try to
disable/enable buttons, here is the traceback:Traceback (most recent call last):
File "beta2.main.py", line 437, in onGetActCd
self._resetbuttons(False,True,False,False)
File "beta2.main.py", line 528, in _resetbuttons
self.cdP.pnl1.btnSave_d.Enable(b1)
TypeError: 'bool' object is not callableand here is the code
.
.
.
self._resetbuttons(True,False,False,True)
.
.def _resetbuttons(self,b1,b2,b3,b4):
print 'reset buttons'
self.cdP.pnl1.btnSave_d.Enable(b1)
self.cdP.pnl1.btnUp_d.Enable(b2)
self.cdP.pnl1.btnDe_d.Enable(b3)
self.cdP.pnl1.btnRe_d.Enable(b4)The function I wrote does work, then for some
reason, it breaks.
When I receive the error the interface just keeps
generating errors.Any ideas would be welcomed.
Scott
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.3 - Release
Date: 4/5/2005
---------------------------------------------------------------------
To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
---
Nigel W. Moriarty, \alphabet_soup
__________________________________
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250