wx.WindowIDRef¶A WindowIDRef object wraps an
IDvalue and marks it as being in-use until all references to thatIDare gone.
Class Hierarchy¶
Inheritance diagram for class WindowIDRef:

Methods Summary¶Default constructor |
|
Alias for GetValue allowing the IDRef to be passed as the source parameter to |
|
Get the |
|
See |
|
Alias for GetValue allowing the IDRef to be passed as the WindowID parameter when creating widgets or other places an integer type is needed. |
|
Properties Summary¶See |
|
See |
Class API¶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.
__init__(self, *args, **kw)¶__init__ (self)
Default constructor
__init__ (self, id)
Create reference from an ID
id (int) –
__init__ (self, idref)
Copy an ID reference
idref (WindowIDRef) –
GetId(self)¶Alias for GetValue allowing the IDRef to be passed as the source parameter to wx.EvtHandler.Bind.
int
GetValue(self)¶Get the ID value
int
__eq__(self, id)¶bool
__ge__(self, id)¶bool
__gt__(self, id)¶bool
__hash__(self)¶__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.
int
__le__(self, id)¶bool
__lt__(self, id)¶bool
__ne__(self, id)¶bool
__repr__(self)¶