wxListCtrl not intercepting OnItemSelected on OS/X

I have a class that derives from a wx.ListCtrl, that has a
OnItemSelected event coded within it.
On linux, code works fine.
On windows (via py2exe) it works fine.

But on os/x the event does not fire.

I can post the whole class here if you need it.

I am perplexed. Here is snippet. I would THINK that os/x and linux
wouldn't be much of a problem.

Jerry

class SQLList(wx.ListCtrl):
    def __init__(self, parent, id, style):
        wx.ListCtrl.__init__(self, parent, id, style=wx.LC_REPORT)
        self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnItemSelected)
        self.ItemSelectedCallback = None

...

    def OnItemSelected(self, evt):
        itemindex = evt.m_itemIndex
        print 'in SQLList:OnItemSelected: itemindex = ', itemindex

Yes, please make a runnable, small as possible, sample application that demonstrates the problem. MakingSampleApps - wxPyWiki Also, which version of wxPython are you using?

···

On 6/16/11 8:30 AM, jdawgaz wrote:

I have a class that derives from a wx.ListCtrl, that has a
OnItemSelected event coded within it.
On linux, code works fine.
On windows (via py2exe) it works fine.

But on os/x the event does not fire.

I can post the whole class here if you need it.

--
Robin Dunn
Software Craftsman