a little question regarding wx.dataview

Nathan smith <[email protected]> Mon, 25 Jan 2021 22:33:03 +0000
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
Hi there,


So I finally got around to trying to make something for the Mac and as 
per a conversation back in May 2019 (wow!) I'm using 
wx.dataview.DataViewListCtrl as a replacement for wx.Listctrl so that it 
is accessible with the screen reader of mac, Voiceover.

I've constructed it like so:

   self.items = wx.dataview.DataViewListCtrl(panel, -1, style = 
wx.LC_REPORT)
   hbox1.Add(self.items, 1, wx.EXPAND|wx.ALIGN_LEFT|wx.ALL,5)
   self.items.AppendTextColumn("Main Menu.")
   c=['Item 1', 'Item 2', 'Item 3']
   for x in range(len(c)):
    self.items.InsertItem(x, [c[x]])
#  self.items.Focus(0)
#  self.items.Select(0)
   self.items.SetName("Main Menu.")
   self.items.Bind(wx.dataview.EVT_DATAVIEW_ITEM_ACTIVATED, 
self.showsomething)


Despite this, pressing enter on an item does not do anything at all.

I'm wondering if someone can help me out here.

Thanks in advance,

Nathan

-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/853d3db5-ca17-43c3-0a3b-e2d40edac645%40gmail.com.