phoenix_title wx.WindowIDRef

A WindowIDRef object wraps an ID value and marks it as being in-use until all references to that ID are gone.


class_hierarchy Class Hierarchy

Inheritance diagram for class WindowIDRef:

method_summary Methods Summary

__init__

Default constructor

GetId

Alias for GetValue allowing the IDRef to be passed as the source parameter to wx.EvtHandler.Bind.

GetValue

Get the ID value

__eq__

__ge__

__gt__

__hash__

__index__

See __int__

__int__

Alias for GetValue allowing the IDRef to be passed as the WindowID parameter when creating widgets or other places an integer type is needed.

__le__

__lt__

__ne__

__repr__


property_summary Properties Summary

Id

See GetId

Value

See GetValue


api Class API

class wx.WindowIDRef(object)

Possible constructors:

WindowIDRef()

WindowIDRef(id)

WindowIDRef(idref)

A WindowIDRef object wraps an ID value and marks it as being in-use until all references to that ID are gone.


Methods

__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self)

Default constructor



__init__ (self, id)

Create reference from an ID

Parameters:

id (int) –



__init__ (self, idref)

Copy an ID reference

Parameters:

idref (WindowIDRef) –





GetId(self)

Alias for GetValue allowing the IDRef to be passed as the source parameter to wx.EvtHandler.Bind.

Return type:

int



GetValue(self)

Get the ID value

Return type:

int



__eq__(self, id)
Return type:

bool



__ge__(self, id)
Return type:

bool



__gt__(self, id)
Return type:

bool



__hash__(self)


__index__(self)

See __int__

Return type:

int



__int__(self)

Alias for GetValue allowing the IDRef to be passed as the WindowID parameter when creating widgets or other places an integer type is needed.

Return type:

int



__le__(self, id)
Return type:

bool



__lt__(self, id)
Return type:

bool



__ne__(self, id)
Return type:

bool



__repr__(self)

Properties

Id

See GetId



Value

See GetValue