Wxpython grid is not responsive to mouse clicks

Just a guess, is your parenting correct?
Werner

···

On 19/12/2013 18:51, steve wrote:

I have created a panel, added 2 grid objects to the panel using a horizontal sizer. For some reason, the grids are not responsive to mouse clicks. When I click on any cell on either grids, the cell is not highlighted, and when I double click on any cell, editor doesn't start. What could be the possible reasons for this behaviour?

I think yes, I see that all objects are placed where they are expected to be. Would bad parenting cause this problem?

···

On Thursday, December 19, 2013 9:04:33 PM UTC+2, werner wrote:

On 19/12/2013 18:51, steve wrote:

I have created a panel, added 2 grid objects to the panel using a
horizontal sizer. For some reason, the grids are not responsive to
mouse clicks. When I click on any cell on either grids, the cell is
not highlighted, and when I double click on any cell, editor doesn’t
start. What could be the possible reasons for this behaviour?

Just a guess, is your parenting correct?

Werner

you were right, parenting was not correct. Now it is fixed.

Thanks
Best regards

···

On Thursday, December 19, 2013 10:10:28 PM UTC+2, steve wrote:

I think yes, I see that all objects are placed where they are expected to be. Would bad parenting cause this problem?

On Thursday, December 19, 2013 9:04:33 PM UTC+2, werner wrote:

On 19/12/2013 18:51, steve wrote:

I have created a panel, added 2 grid objects to the panel using a
horizontal sizer. For some reason, the grids are not responsive to
mouse clicks. When I click on any cell on either grids, the cell is
not highlighted, and when I double click on any cell, editor doesn’t
start. What could be the possible reasons for this behaviour?

Just a guess, is your parenting correct?

Werner

steve wrote:

you were right, parenting was not correct. Now it is fixed.

If only bad parenting were that easy to correct in society...

···

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

steve wrote:

I think yes, I see that all objects are placed where they are expected
to be. Would bad parenting cause this problem?

Yes, at least on Windows. You may want to try using the WIT, the tree of widgets shown there may help you spot the problem. Usually is is something like using a widget with a splitter and is not the direct child of the splitter, or using it in the sizer of some widget that is not contained in the parent, or something like that.

http://wiki.wxpython.org/Widget_Inspection_Tool

···

--
Robin Dunn
Software Craftsman