Button concerns

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 callable

and 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