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 actual changes but just allow the view to react to changes to the model.
Methods Summary¶Default constructor initializes the object to invalid state. |
|
Get the position after which the insertion/deletion occur. |
|
Get the number of rows to be inserted/deleted. |
|
Gets an id. |
|
Gets the table object. |
|
Set the position after which the insertion/deletion occur. |
|
Set the number of rows to be inserted/deleted. |
|
Sets an id. |
|
Sets the table object. |
Properties Summary¶See |
|
See |
|
See |
Class API¶wx.grid.GridTableMessage(object)¶Possible constructors:
GridTableMessage()
GridTableMessage(table, id, comInt1=-1, comInt2=-1)
Message class used by the grid table to send requests and notifications to the grid view.
__init__(self, *args, **kw)¶__init__ (self)
Default constructor initializes the object to invalid state.
__init__ (self, table, id, comInt1=-1, comInt2=-1)
Constructor really initialize the message.
table (wx.grid.GridTableBase) – Pointer to the grid table
id (int) – One of GridTableRequest enum elements.
comInt1 (int) – Position after which the rows are inserted/deleted
comInt2 (int) – Number of rows to be inserted/deleted
GetCommandInt(self)¶Get the position after which the insertion/deletion occur.
int
GetCommandInt2(self)¶Get the number of rows to be inserted/deleted.
int
GetId(self)¶Gets an id.
int
GetTableObject(self)¶Gets the table object.
SetCommandInt(self, comInt1)¶Set the position after which the insertion/deletion occur.
comInt1 (int) –
SetCommandInt2(self, comInt2)¶Set the number of rows to be inserted/deleted.
comInt2 (int) –
SetId(self, id)¶Sets an id.
id (int) –
SetTableObject(self, table)¶Sets the table object.
table (wx.grid.GridTableBase) –
CommandInt¶See GetCommandInt and SetCommandInt
CommandInt2¶See GetCommandInt2 and SetCommandInt2
TableObject¶See GetTableObject and SetTableObject