Python Forum
Get value of wx grid cell
Thread Rating:
  • 4 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get value of wx grid cell
#1
I created added 5 wx grids in a list and populated data. And also created an event as below. when clicking a cell, it will print the number of row and column of the selected cell on that grid (don't know which grid). How do I get the value of the cell? Thanks.

def OnCellSelected(self, event):
print(event.GetRow(), event.GetCol())
Reply


Messages In This Thread
Get value of wx grid cell - by ian - Jul-15-2017, 02:17 AM
RE: Get value of wx grid cell - by Larz60+ - Jul-15-2017, 03:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [WxPython] Grid. How to close the cell editor? ioprst 1 2,600 Dec-03-2019, 09:28 AM
Last Post: ioprst
  [WxPython] Why does an error occur after editing a grid cell? ioprst 2 2,805 Nov-12-2019, 12:31 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020