 wx.propgrid.PropertyGridPageState
  wx.propgrid.PropertyGridPageState
Contains low-level property page information (properties, column widths, etc) of a single   wx.propgrid.PropertyGrid  or single   wx.propgrid.PropertyGridPage.
Generally you should not use this class directly, but instead member functions in   wx.propgrid.PropertyGridInterface,   wx.propgrid.PropertyGrid,   wx.propgrid.PropertyGridPage, and   wx.propgrid.PropertyGridManager.
Note
- In separate   wx.propgrid.PropertyGrid  component this class was known as PropertyGridState.
- Currently this class is not implemented in wxPython.
 
 Class Hierarchy
 Class Hierarchy

Inheritance diagram for class 
PropertyGridPageState:
 
 
 Methods Summary
 Methods Summary
 
 Properties Summary
 Properties Summary
 
 Class API
 Class API
- 
class wx.propgrid.PropertyGridPageState(object)
- Possible constructors: - Contains low-level property page information (properties, column
widths, etc) of a single PropertyGrid or single PropertyGridPage. 
 - Methods
 
 - 
- 
__init__(self)
- Default constructor. 
 
 
 - 
- 
BaseGetPropertyByName(self, name)
- Returns property by its name. 
 
 
 - 
- 
CalculateFontAndBitmapStuff(self, vspacing)
- 
| Parameters: | vspacing (int) – | 
|---|
 
 
 
 
 - 
- 
CheckColumnWidths(self, widthChange=0)
- Makes sure all columns have minimum width. - 
| Parameters: | widthChange (int) – | 
|---|
 
 
 
 
 - 
- 
DoAppend(self, property)
- Base append. 
 
 
 - 
- 
DoClear(self)
- Called in, for example, - wx.propgrid.PropertyGrid.Clear.
 
 
 
 - 
- 
DoClearSelection(self)
- 
 
 
 - 
- 
DoCollapse(self, p)
- 
 
 
 - 
- 
DoDelete(self, item, doDelete=True)
- Override this member function to add custom behaviour on property deletion. 
 
 
 - 
- 
DoExpand(self, p)
- 
 
 
 - 
- 
DoFitColumns(self, allowGridResize=False)
- 
| Parameters: | allowGridResize (bool) – | 
|---|
 | Return type: | Size | 
|---|
 
 
 
 
 - 
- 
DoGetColumnProportion(self, column)
- 
| Parameters: | column (int) – | 
|---|
 | Return type: | int | 
|---|
 
 
 
 
 - 
- 
DoGetItemAtY(self, y)
- 
 
 
 - 
- 
DoGetPropertyValues(self, listname, baseparent, flags)
- 
| Parameters: |  | 
|---|
 | Return type: | PGVariant | 
|---|
 
 
 
 
 - 
- 
DoGetRoot(self)
- 
 
 
 - 
- 
DoHideProperty(self, p, hide, flags=PG_RECURSE)
- 
| Parameters: |  | 
|---|
 | Return type: | bool | 
|---|
 
 
 
 
 - 
- 
DoInsert(self, parent, index, property)
- Override this member function to add custom behaviour on property insertion. 
 
 
 - 
- 
DoIsPropertySelected(self, prop)
- 
 
 
 - 
- 
DoLimitPropertyEditing(self, p, limit=True)
- 
 
 
 - 
- 
DoRemoveFromSelection(self, prop)
- 
 
 
 - 
- 
DoSelectProperty(self, p, flags=0)
- 
| Parameters: |  | 
|---|
 | Return type: | bool | 
|---|
 
 
 
 
 - 
- 
DoSetColumnProportion(self, column, proportion)
- 
| Parameters: | 
column (int) – proportion (int) –  | 
|---|
 
 
 
 
 - 
- 
DoSetPropertyName(self, p, newName)
- 
 
 
 - 
- 
DoSetPropertyValue(self, p, value)
- 
| Parameters: |  | 
|---|
 | Return type: | bool | 
|---|
 
 
 
 
 - 
- 
DoSetPropertyValueString(self, p, value)
- 
| Parameters: |  | 
|---|
 | Return type: | bool | 
|---|
 
 
 
 
 - 
- 
DoSetPropertyValueWxObjectPtr(self, p, value)
- 
| Parameters: |  | 
|---|
 | Return type: | bool | 
|---|
 
 
 
 
 - 
- 
DoSetPropertyValues(self, list, default_category)
- 
 
 
 - 
- 
DoSetSelection(self, prop)
- 
 
 
 - 
- 
DoSetSplitterPosition(self, pos, splitterColumn=0, flags=0)
- This needs to be overridden in grid used the manager so that splitter changes can be propagated to other pages. - 
| Parameters: | 
pos (int) – splitterColumn (int) – flags (int) –  | 
|---|
 
 
 
 
 - 
- 
DoSort(self, flags=0)
- 
 
 
 - 
- 
DoSortChildren(self, p, flags=0)
- 
 
 
 - 
- 
EnableCategories(self, enable)
- 
| Parameters: | enable (bool) – | 
|---|
 | Return type: | bool | 
|---|
 
 
 
 
 - 
- 
EnsureVirtualHeight(self)
- Make sure virtual height is up-to-date. 
 
 
 - 
- 
GetActualVirtualHeight(self)
- Returns actual height of contained visible properties. - 
- Note - Mostly used for internal diagnostic purposes. 
 
 
 
 - 
- 
GetColumnCount(self)
- 
 
 
 - 
- 
GetColumnFitWidth(self, dc, pwc, col, subProps)
- Returns minimal width for given column so that all images and texts will fit entirely. - Used by - SetSplitterLeftand- DoFitColumns.
 - 
| Parameters: |  | 
|---|
 | Return type: | int | 
|---|
 
 
 
 
 - 
- 
GetColumnFullWidth(self, dc, p, col)
- 
| Parameters: |  | 
|---|
 | Return type: | int | 
|---|
 
 
 
 
 - 
- 
GetColumnMinWidth(self, column)
- 
| Parameters: | column (int) – | 
|---|
 | Return type: | int | 
|---|
 
 
 
 
 - 
- 
GetColumnWidth(self, column)
- 
| Parameters: | column (int) – | 
|---|
 | Return type: | int | 
|---|
 
 
 
 
 - 
- 
GetGrid(self)
- 
 
 
 - 
- 
GetLastItem(self, flags=PG_ITERATE_DEFAULT)
- Returns last item which could be iterated using given flags. 
 
 
 - 
- 
GetPropertyByLabel(self, name, parent=None)
- 
 
 
 - 
- 
GetPropertyCategory(self, p)
- 
 
 
 - 
- 
GetSelection(self)
- Returns currently selected property. 
 
 
 - 
- 
GetVirtualHeight(self)
- Returns (precalculated) height of contained visible properties. 
 
 
 - 
- 
GetVirtualWidth(self)
- 
 
 
 - 
- 
HitTest(self, pt)
- Returns information about arbitrary position in the grid. 
 
 
 - 
- 
IsDisplayed(self)
- Returns - Trueif page is visibly displayed.
 
 
 
 - 
- 
IsInNonCatMode(self)
- 
 
 
 - 
- 
OnClientWidthChange(self, newWidth, widthChange, fromOnResize=False)
- widthChange is non-client. - 
| Parameters: | 
newWidth (int) – widthChange (int) – fromOnResize (bool) –  | 
|---|
 
 
 
 
 - 
- 
PrepareAfterItemsAdded(self)
- 
 
 
 - 
- 
PropagateColSizeDec(self, column, decrease, dir)
- 
| Parameters: | 
column (int) – decrease (int) – dir (int) –  | 
|---|
 
 
 
 
 - 
- 
RecalculateVirtualHeight(self)
- Recalculates m_virtualHeight. 
 
 
 - 
- 
ResetColumnSizes(self, setSplitterFlags)
- 
| Parameters: | setSplitterFlags (int) – | 
|---|
 
 
 
 
 - 
- 
SetColumnCount(self, colCount)
- 
| Parameters: | colCount (int) – | 
|---|
 
 
 
 
 - 
- 
SetSplitterLeft(self, subProps=False)
- 
| Parameters: | subProps (bool) – | 
|---|
 
 
 
 
 - 
- 
SetVirtualWidth(self, width)
- Set virtual width for this particular page. 
 
 
 - 
- 
VirtualHeightChanged(self)
- Called after virtual height needs to be recalculated. 
 
 - Properties
 
 - 
- 
ActualVirtualHeight
- See - GetActualVirtualHeight
 
 
 
 - 
- 
ColumnCount
- See - GetColumnCountand- SetColumnCount
 
 
 
 - 
- 
Grid
- See - GetGrid
 
 
 
 - 
- 
LastItem
- See - GetLastItem
 
 
 
 - 
- 
Selection
- See - GetSelection
 
 
 
 - 
- 
VirtualHeight
- See - GetVirtualHeight
 
 
 
 - 
- 
VirtualWidth
- See - GetVirtualWidthand- SetVirtualWidth