Phoenix DataViewCustomRenderer: How to disable item editing with the slow double mouse click?

Konstantin Bolshakov <[email protected]> Thu, 1 Mar 2018 03:40:34 -0800 (PST)
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
I have an application with custom DataViewCtrl, DataViewModel and 
DataViewCustomRenderer which should allow the user to edit items only via 
the F2 key or the windows context menu key and NOT with (slowly) clicking 
on the item. Is this possible?

In the docs I've seen the LeftClick() and ActivateCell() methods which seem 
to allow me to override the behaviour but they only work with the 
DATAVIEW_CELL_ACTIVATABLE cell mode. Combining DATAVIEW_CELL_EDITABLE 
and DATAVIEW_CELL_ACTIVATABLE doesn't seem to work because then editing 
isn't working at all. Is this maybe a bug?
I tried binding EVT_LEFT_DOWN in the DataViewCtrl to veto the EVT_DATAVIEW_ITEM_START_EDITING 
event, but it doesn't get called. 

I'm using the Phoenix Build 4.0.1 with python 2.7.14 and Windows 7 64-bit.


Thanks for any help!

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.