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