How to detect a click in a grid cell?

Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Nov 2008
Posts: 2
Reputation: markmcwiggins is an unknown quantity at this point 
Solved Threads: 0
markmcwiggins markmcwiggins is offline Offline
Newbie Poster

How to detect a click in a grid cell?

 
0
  #1
Nov 14th, 2008
I have a small WxPython app using the CalendarCtrl module, which works
fine. I have it set to bring up a grid of times for a particular day's appointments
when I click on one of the days.

But I don't see how to detect which cell of a grid I click on and use that (row,col)
value. I found an example detecting the (x,y) in the panel on a click, but I don't
see this kind of example.

Any ideas? Thanks much.

Mark McWiggins
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4,109
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 943
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: How to detect a click in a grid cell?

 
0
  #2
Nov 14th, 2008
If you are using wx.grid.Grid, there is an example here:
http://www.daniweb.com/forums/post666940-59.html
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Python Forum
Thread Tools Search this Thread



Tag cloud for Python
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC