PyDataViewCustomRenderer

Not much help here, but I see the same problem in the demo on 2.9.4 and Windows, so doesn't look like it is mac specific.

Werner

···

On 24/11/2012 05:15, elie chbeir wrote:

Dear list,

Please help, i've already spent hours on this.

I have a dataviewctrl with PyDataViewIndexListModel working.

I want the user to be able to click on the value of a column and that would trigger opening a new window.

I am trying to implement a PyDataViewCustomRenderer to detect when a cell is activated or gets a left click.

Although the render function of the custom renderer is working, the other functions are not. No matter what i do it seems that the 'Activate' and 'LeftClick' functions are not being triggered by double clicking or pressing 'enter'.

Even in the wxpython 2.9 demo, the custom renderer is not detecting left clicking or activating a cell.

I am using wxpython 2.9 on mac mountain lion cocoa. Sorry to post here but i get no answers in the mac section.

Ok, I'll take a look at it. The method signature in the C++ class may have changed, if so my virtual method reflector would not be called and so the Python method wouldn't be called either.

Later: Yep, that is the problem. It also looks like both of those methods have been deprecated and that a new ActivateCell should be used instead. I'll get these issues fixed soon.

···

On 11/23/12 11:11 PM, Werner wrote:

On 24/11/2012 05:15, elie chbeir wrote:

Dear list,

Please help, i've already spent hours on this.

I have a dataviewctrl with PyDataViewIndexListModel working.

I want the user to be able to click on the value of a column and that
would trigger opening a new window.

I am trying to implement a PyDataViewCustomRenderer to detect when a
cell is activated or gets a left click.

Although the render function of the custom renderer is working, the
other functions are not. No matter what i do it seems that the
'Activate' and 'LeftClick' functions are not being triggered by double
clicking or pressing 'enter'.

Even in the wxpython 2.9 demo, the custom renderer is not detecting
left clicking or activating a cell.

I am using wxpython 2.9 on mac mountain lion cocoa. Sorry to post here
but i get no answers in the mac section.

Not much help here, but I see the same problem in the demo on 2.9.4 and
Windows, so doesn't look like it is mac specific.

--
Robin Dunn
Software Craftsman