A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://wxpython.org/Phoenix/docs/html/wx.propgrid.PropertyGridEvent.html below:

wx.propgrid.PropertyGridEvent — wxPython Phoenix 4.2.4a1 documentation

wx.propgrid.PropertyGridEvent¶

A property grid event holds information about events associated with wx.propgrid.PropertyGrid objects.

To process input from a property grid control, use these event handler macros to direct input to member functions that take a wx.propgrid.PropertyGridEvent argument.

Events Emitted by this Class¶

Handlers bound for the following event types will receive a wx.propgrid.PropertyGridEvent parameter.

Class Hierarchy¶

Inheritance diagram for class

PropertyGridEvent

:

Methods Summary¶ Properties Summary¶ Class API¶
class wx.propgrid.PropertyGridEvent(CommandEvent)¶

Possible constructors:

PropertyGridEvent(commandType=0, id=0) -> None

PropertyGridEvent(event) -> None

A property grid event holds information about events associated with PropertyGrid objects.


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

Overloaded Implementations:

__init__ (self, commandType=0, id=0)

Constructor.

Parameters:
  • commandType (wx.EventType)

  • id (int)

Return type:

None

__init__ (self, event)

Copy constructor.

Parameters:

event (wx.propgrid.PropertyGridEvent)

Return type:

None



CanVeto(self)¶

Returns True if you can veto the action that the event is signaling.

Return type:

bool


GetColumn(self)¶

Returns the column index associated with this event.

For the column dragging events, it is the column to the left of the splitter being dragged

Return type:

int


GetMainParent(self)¶

Returns highest level non-category, non-root parent of property for which event occurred.

Useful when you have nested properties with children.

Return type:

wx.propgrid.PGProperty

Note

If immediate parent is root or category, this will return the property itself.


GetProperty(self)¶

Returns property associated with this event.

Return type:

wx.propgrid.PGProperty

Note

You should assume that this property can always be None. For instance, wxEVT_PG_SELECTED is emitted not only when a new property is selected, but also when selection is cleared by user activity.


GetPropertyName(self)¶

Returns name of the associated property.

Return type:

str

Note

Property name is stored in event, so it remains accessible even after the associated property or the property grid has been deleted.


GetPropertyValue(self)¶

Returns value of the associated property.

Works for all event types, but for wxEVT_PG_CHANGING this member function returns the value that is pending, so you can call Veto if the value is not satisfactory.

Return type:

PGVariant

Note

Property value is stored in event, so it remains accessible even after the associated property or the property grid has been deleted.


GetValidationFailureBehavior(self)¶

Returns current validation failure flags.

Return type:

int


GetValue(self)¶

Returns value of the associated property.

Return type:

PGVariant


SetCanVeto(self, canVeto)¶

Set if event can be vetoed.

Parameters:

canVeto (bool)

Return type:

None


SetProperty(self, p)¶

Changes the property associated with this event.

Parameters:

p (wx.propgrid.PGProperty)

Return type:

None


SetValidationFailureBehavior(self, flags)¶

Set override validation failure behaviour.

Only effective if Veto was also called, and only allowed if event type is wxEVT_PG_CHANGING .

Parameters:

flags (wx.byte)

Return type:

None


SetValidationFailureMessage(self, message)¶

Sets custom failure message for this time only.

Only applies if PG_VFB_SHOW_MESSAGE is set in validation failure flags.

Parameters:

message (string)

Return type:

None


Veto(self, veto=True)¶

Call this from your event handler to veto action that the event is signaling.

You can only veto a shutdown if wx.propgrid.PropertyGridEvent.CanVeto returns True.

Parameters:

veto (bool)

Return type:

None

Note

Currently only wxEVT_PG_CHANGING supports vetoing.


WasVetoed(self)¶

Returns True if event was vetoed.

Return type:

bool


Properties¶
Column¶

See GetColumn


MainParent¶

See GetMainParent


Property¶

See GetProperty and SetProperty


PropertyName¶

See GetPropertyName


PropertyValue¶

See GetPropertyValue


ValidationFailureBehavior¶

See GetValidationFailureBehavior and SetValidationFailureBehavior


Value¶

See GetValue


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4