GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.grid.GridTableMessage
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx.grid

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.grid.GridTableMessage — wxPython 4.3.2 Docs

phoenix_title wx.grid.GridTableMessage¶

Message class used by the grid table to send requests and notifications to the grid view.

A message object of this class must be sent to the grid using wx.grid.Grid.ProcessTableMessage every time the table changes, e.g. rows are added/deleted. The messages are just notifications and don’t result in any changes to the table data, but allow the view to react to changes to the model.

The table must be updated before sending the notification. For example, a custom wx.grid.GridTableBase.InsertRows implementation should first insert the rows into its own data storage and only then notify the grid:

The same rule applies to the other row and column modification messages: update the table first, then notify the grid.


class_hierarchy Class Hierarchy¶

Inheritance diagram for class GridTableMessage:

Inheritance diagram of GridTableMessage


method_summary Methods Summary¶

__init__

Default constructor initializes the object to invalid state.

GetCommandInt

Get the position at which the insertion/deletion occurs.

GetCommandInt2

Get the number of rows to be inserted/deleted.

GetId

Gets an id.

GetTableObject

Gets the table object.

SetCommandInt

Set the position at which the insertion/deletion occurs.

SetCommandInt2

Set the number of rows to be inserted/deleted.

SetId

Sets an id.

SetTableObject

Sets the table object.


property_summary Properties Summary¶

CommandInt

See GetCommandInt and SetCommandInt

CommandInt2

See GetCommandInt2 and SetCommandInt2

Id

See GetId and SetId

TableObject

See GetTableObject and SetTableObject


api Class API¶

class wx.grid.GridTableMessage(object)¶

Possible constructors:

GridTableMessage() -> None

GridTableMessage(table, id, comInt1=-1, comInt2=-1) -> None

Message class used by the grid table to send requests and notifications to the grid view.


Methods¶

__init__(self, *args, **kw)¶

overload Overloaded Implementations:



__init__ (self)

Default constructor initializes the object to invalid state.

Return type:

None



__init__ (self, table, id, comInt1=-1, comInt2=-1)

Constructor initializes the message.

Parameters:
  • table (wx.grid.GridTableBase) – Pointer to the grid table

  • id (int) – One of GridTableRequest enum elements.

  • comInt1 (int) – For the insert/delete messages, position at which the rows or columns are inserted/deleted. For the append messages, the number of rows or columns that were appended.

  • comInt2 (int) – For the insert/delete messages, number of rows or columns to be inserted/deleted. For the append messages, this parameter is not used.

Return type:

None





GetCommandInt(self)¶

Get the position at which the insertion/deletion occurs.

Return type:

int



GetCommandInt2(self)¶

Get the number of rows to be inserted/deleted.

Return type:

int



GetId(self)¶

Gets an id.

Return type:

int



GetTableObject(self)¶

Gets the table object.

Return type:

wx.grid.GridTableBase



SetCommandInt(self, comInt1)¶

Set the position at which the insertion/deletion occurs.

Parameters:

comInt1 (int)

Return type:

None



SetCommandInt2(self, comInt2)¶

Set the number of rows to be inserted/deleted.

Parameters:

comInt2 (int)

Return type:

None



SetId(self, id)¶

Sets an id.

Parameters:

id (int)

Return type:

None



SetTableObject(self, table)¶

Sets the table object.

Parameters:

table (wx.grid.GridTableBase)

Return type:

None


Properties¶

CommandInt¶

See GetCommandInt and SetCommandInt



CommandInt2¶

See GetCommandInt2 and SetCommandInt2



Id¶

See GetId and SetId



TableObject¶

See GetTableObject and SetTableObject

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.