wx.WindowIDRef¶
A WindowIDRef object wraps an
ID
value and marks it as being in-use until all references to thatID
are gone.
Class Hierarchy¶
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¶
- class wx.WindowIDRef(object)¶
Possible constructors:
WindowIDRef() -> None WindowIDRef(id) -> None WindowIDRef(idref) -> None
A WindowIDRef object wraps an
ID
value and marks it as being in-use until all references to thatID
are gone.
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self)
Default constructor
- Return type:
None
__init__ (self, id)
Create reference from an
ID
- Parameters:
id (int)
- Return type:
None
__init__ (self, idref)
Copy an
ID
reference- Parameters:
idref (
WindowIDRef
)- Return type:
None
- 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)¶
- __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¶