#1061: dComboBox.Hit not firing (was: dComboBox.AppenEnter not working)
-------------------------------+--------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: paul
Type: defect | Status: new
Priority: major | Milestone:
Component: ui | Version: 0.8.x
Resolution: | Keywords: dComboBox AppendEnter
-------------------------------+--------------------------------------------
Changes (by paul):
* summary: dComboBox.AppenEnter not working => dComboBox.Hit not firing
(was: dComboBox.AppenEnter not working)
Old description:
> I have code like this:
>
> ...
>
> cmb = dabo.ui.dComboBox(self, OnHit=self.cmbHit)
> cmb.AppendOnEnter = True
>
> self.cmbHit(self, evt):
> print "combo hit"
>
> ...
>
> cmbHit is never called, and neither is values appended to the combobox
> when pressing enter.
> No errors are printed.
New description:
I have code like this:
{{{
#!python
...
cmb = dabo.ui.dComboBox(self, OnHit=self.cmbHit)
cmb.AppendOnEnter = True
self.cmbHit(self, evt):
print "combo hit"
...
}}}
cmbHit is never called, and neither is values appended to the combobox
when pressing enter.
No errors are printed.
Comment:
Yes, change 'self.cmbHit(' to 'def.cmbHit('. I'm thinking this was just a
typo in entering the bug report, because you'd be getting a traceback
during the class definition because self isn't defined.
So, please give us a working sample that shows the problem.
--
Ticket URL: <http://svn.dabodev.com/trac/dabo/ticket/1061#comment:2>
Dabo <http://svn.dabodev.com/trac/dabo>
Trac Page for Dabo
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]