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="", bitmap=BitmapBundle())
DataViewIconText(other)
DataViewIconText is used by DataViewIconTextRenderer for data transfer.
__init__
(self, *args, **kw)¶Constructor.
__init__ (self, text=””, bitmap=BitmapBundle())
text (string) –
bitmap (wx.BitmapBundle) –
__init__ (self, other)
other (wx.dataview.DataViewIconText) –
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.
string
SetBitmapBundle
(self, bitmap)¶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) –
New in version 4.1/wxWidgets-3.1.6.
SetIcon
(self, icon)¶Set the icon.
Use SetBitmapBundle
instead to allow specifying different image representations for different DPI
scaling values.
icon (wx.Icon) –
SetText
(self, text)¶Set the text.
text (string) –
BitmapBundle
¶See GetBitmapBundle
and SetBitmapBundle