inspector — Phatch v0.2 documentation

### Navigation

- index
- modules |
- next |
- previous |
- Phatch v0.2 documentation »
- lib »
- pyWx »

# inspector

This unites Table and Grid in one with the following presumptions: - the grid only grows in rows

class `lib.pyWx.inspector.` `Grid`(parent, data, *arg, **keyw)

  Bases: `wx.grid.Grid`

  `AttrIncRef`(attr)
  `GetTableAttr`(row, col, kind)
  `GetTableValue`(row, col)
  `IsTableEmptyCell`()
  `OnRightDown`(event)
  `RefreshAll`()
  `SetAttrReadOnly`(attr, bool)
  `SetRowColours`(odd=wx.Colour(250, 250, 250, 255), even=wx.Colour(254, 255, 255, 255))
  `SetTableValue`(row, col, value)
  class `Table`(grid)

    Bases: `wx.grid.PyGridTableBase`

    `DeleteRows`(pos=0, numRows=1)
    `GetAttr`(row, col, kind)
    `GetGrid`()
    `GetNumberCols`()
    `GetNumberRows`()
    `GetValue`(row, col)
    `IsEmptyCell`(row, col)
    `SetValue`(row, col, value)
  `Grid.` `UpdateNumberRows`()
    Only consider adding or removing rows.
  `Grid.` `UpdateValues`()
    Send an event to the grid table to update all displayed values

class `lib.pyWx.inspector.` `Table`(grid)

  Bases: `wx.grid.PyGridTableBase`

  `DeleteRows`(pos=0, numRows=1)
  `GetAttr`(row, col, kind)
  `GetGrid`()
  `GetNumberCols`()
  `GetNumberRows`()
  `GetValue`(row, col)
  `IsEmptyCell`(row, col)
  `SetValue`(row, col, value)

class `lib.pyWx.inspector.` `TestFrame`(parent)
  Bases: `wx._windows.Frame`

### Navigation

- index
- modules |
- next |
- previous |
- Phatch v0.2 documentation »
- lib »
- pyWx »