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
#2
hello - use wx.Grid.GetCellValue(self, row, col)
returns value as string

index to all API docs (by category) here: https://wxpython.org/Phoenix/docs/html/main.html

Index of wx docs here: https://wxpython.org/Phoenix/docs/html/genindex-W.html

grid documentation here: https://wxpython.org/Phoenix/docs/html/w....grid.Grid
=====================
GetCellValue(self, *args, **kw)

   Returns the string contained in the cell at the specified location.

   For simple applications where a grid object automatically uses a default grid table of string values you use this function together with SetCellValue to access cell values. For more complex applications where you have derived your own grid table class that contains various data types (e.g. numeric, boolean or user-defined custom types) then you only use this function for those cells that contain string values.

   See wx.grid.GridTableBase.CanGetValueAs and the Grid Overview for more information.

   overload Overloaded Implementations:

   ------------------- method one ----------------
   GetCellValue (self, row, col)
   Parameters:

       row (int) –
       col (int) –

   Return type:

   string


   ------------------- method two ----------------
   GetCellValue (self, coords)
   Parameters: coords (wx.grid.GridCellCoords) –
   Return type: string
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,589 Dec-03-2019, 09:28 AM
Last Post: ioprst
  [WxPython] Why does an error occur after editing a grid cell? ioprst 2 2,781 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