wx.dataview.DataViewIconText is used by wx.dataview.DataViewIconTextRenderer for data transfer.
This class can be converted to and from a Variant .
wx.dataview.DataViewCheckIconText
Constructor. |
|
Gets the associated image. |
|
Gets the icon. |
|
Gets the text. |
|
Sets the associated image. |
|
Set the icon. |
|
Set the text. |
See |
|
wx.dataview.
DataViewIconText
(Object)¶Possible constructors:
DataViewIconText(text: str='', bitmap: BitmapBundle=BitmapBundle()) ->
None
DataViewIconText(other : DataViewIconText) -> None
DataViewIconText is used by DataViewIconTextRenderer for data transfer.
__init__
(self, *args, **kw)¶Constructor.
__init__ (self, text: str=’’, bitmap: BitmapBundle=BitmapBundle())
text (string) –
bitmap (wx.BitmapBundle) –
None
__init__ (self, other : DataViewIconText)
other (wx.dataview.DataViewIconText) –
None
GetBitmapBundle
(self)¶Gets the associated image.
New in version 4.1/wxWidgets-3.1.6.
GetIcon
(self)¶Gets the icon.
This function can only return the icon in the size appropriate for the standard 100% DPI
scaling, use GetBitmapBundle
to retrieve image representation suitable for another DPI
scaling value.
GetText
(self)¶Gets the text.
str
SetBitmapBundle
(self, bitmap : BitmapBundle)¶Sets the associated image.
This function allows to provide several representations of the same image, so that the most appropriate one for the current DPI
scaling could be used, and so should be preferred to SetIcon
.
bitmap (wx.BitmapBundle) –
None
New in version 4.1/wxWidgets-3.1.6.
SetIcon
(self, icon : Icon)¶Set the icon.
Use SetBitmapBundle
instead to allow specifying different image representations for different DPI
scaling values.
icon (wx.Icon) –
None
SetText
(self, text : str)¶Set the text.
text (string) –
None
BitmapBundle
¶See GetBitmapBundle
and SetBitmapBundle