wx.ClassInfo¶
This class stores meta-information about classes.
Instances of this class are not generally defined directly by an application, but indirectly through use of macros such as DECLARE_DYNAMIC_CLASS
and IMPLEMENT_DYNAMIC_CLASS
.
See also
Class Hierarchy¶
Methods Summary¶
|
Constructs a wx.ClassInfo object. |
Creates an object of the appropriate kind. |
|
Finds the wx.ClassInfo object for a class with the given name. |
|
Returns the name of the first base class ( |
|
Returns the name of the second base class ( |
|
Returns the string form of the class name. |
|
Returns the size of the class. |
|
Returns |
|
Returns |
Properties Summary¶
See |
|
See |
Class API¶
- class wx.ClassInfo(object)¶
This class stores meta-information about classes.
Methods¶
- CreateObject(self)¶
Creates an object of the appropriate kind.
- Return type:
- Returns:
None
if the class has not been declared dynamically creatable (typically, this happens for abstract classes).
- static FindClass(className)¶
Finds the wx.ClassInfo object for a class with the given name.
- Parameters:
className (string)
- Return type:
- GetBaseClassName1(self)¶
Returns the name of the first base class (
None
if none).- Return type:
str
- GetBaseClassName2(self)¶
Returns the name of the second base class (
None
if none).- Return type:
str
- GetClassName(self)¶
Returns the string form of the class name.
- Return type:
str
- GetSize(self)¶
Returns the size of the class.
- Return type:
int
- IsDynamic(self)¶
Returns
True
if this class info can create objects of the associated class.- Return type:
bool
- IsKindOf(self, info)¶
Returns
True
if this class is a kind of (inherits from) the given class.- Parameters:
info (wx.ClassInfo)
- Return type:
bool
Properties¶
- BaseClassName1¶
- BaseClassName2¶
- ClassName¶
See
GetClassName