The code below works for me too...(windows)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dabo
Sent: Wednesday, May 02, 2007 2:46 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [email protected]
Subject: Re: [dabo-dev] [Dabo Ticket] #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
-------------------------------+--------------------------------------------
Comment (by ed):

 Here's the code I used to test this. Seems to work fine for me.


 {{{
 import dabo
 dabo.ui.loadUI("wx")
 import dabo.dEvents as dEvents

 class TestForm(dabo.ui.dForm):
         def afterInit(self):
                 self.cmb = dabo.ui.dComboBox(self, OnHit=self.cmbHit,
                                 Choices=["Apple", "Banana", "Carrot"])
                 self.cmb.AppendOnEnter = True

         def cmbHit(self, evt):
                 print "combo hit: %s" % self.cmb.Choices

 def main():
         app = dabo.dApp()
         app.MainFormClass = TestForm
         app.start()

 if __name__ == '__main__':
         main()
 }}}

-- 
Ticket URL: <http://svn.dabodev.com/trac/dabo/ticket/1061#comment:3>
Dabo <http://svn.dabodev.com/trac/dabo>
Trac Page for Dabo


[excessive quoting removed by server]

_______________________________________________
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/!&!AAAAAAAAAAAYAAAAAAAAAGnwNn52Lj1DjDRaSGJwREHCgAAAEAAAAECZegRmjjhHqwcdjiZ/[EMAIL
 PROTECTED]

Reply via email to