Re: a little question regarding wx.dataview

"[email protected]" <[email protected]> Tue, 26 Jan 2021 10:50:02 -0800 (PST)
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
Hello,
Have you tried the different modes for the TextColumn? The default 
is wx.dataview.DATAVIEW_CELL_INERT:  
The cell only displays information and cannot be manipulated or otherwise 
interacted with in any way.

see 
here: https://wxpython.org/Phoenix/docs/html/wx.dataview.DataViewCellMode.enumeration.html

Best
Eigi

[email protected] schrieb am Montag, 25. Januar 2021 um 23:33:08 UTC+1:

> 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/4dec42ee-0627-411c-9f43-0e45295f2479n%40googlegroups.com.