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
__init__ |
Constructs a wx.ClassInfo object. |
CreateObject |
Creates an object of the appropriate kind. |
FindClass |
Finds the wx.ClassInfo object for a class with the given name. |
GetBaseClassName1 |
Returns the name of the first base class (None if none). |
GetBaseClassName2 |
Returns the name of the second base class (None if none). |
GetClassName |
Returns the string form of the class name. |
GetSize |
Returns the size of the class. |
IsDynamic |
Returns True if this class info can create objects of the associated class. |
IsKindOf |
Returns True if this class is a kind of (inherits from) the given class. |
BaseClassName1 |
See GetBaseClassName1 |
BaseClassName2 |
See GetBaseClassName2 |
ClassName |
See GetClassName |
Size |
See GetSize |
wx.
ClassInfo
(object)¶This class stores meta-information about classes.
CreateObject
(self)¶Creates an object of the appropriate kind.
Return type: | wx.Object |
---|---|
Returns: | None if the class has not been declared dynamically creatable (typically, this happens for abstract classes). |
FindClass
(className)¶Finds the wx.ClassInfo object for a class with the given name.
Parameters: | className (string) – |
---|---|
Return type: | wx.ClassInfo |
GetBaseClassName1
(self)¶Returns the name of the first base class (None
if none).
Return type: | wx.Char |
---|
GetBaseClassName2
(self)¶Returns the name of the second base class (None
if none).
Return type: | wx.Char |
---|
GetClassName
(self)¶Returns the string form of the class name.
Return type: | wx.Char |
---|
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 |
BaseClassName1
¶BaseClassName2
¶ClassName
¶See GetClassName