wx.dataview.DataViewIconText¶
wx.dataview.DataViewIconText is used by wx.dataview.DataViewIconTextRenderer for data transfer.
This class can be converted to and from a Variant .
Class Hierarchy¶
Known Subclasses¶
wx.dataview.DataViewCheckIconText
Methods Summary¶
Constructor. |
|
Gets the associated image. |
|
Gets the icon. |
|
Gets the text. |
|
Sets the associated image. |
|
Set the icon. |
|
Set the text. |
Properties Summary¶
See |
|
Class API¶
- class wx.dataview.DataViewIconText(Object)¶
Possible constructors:
DataViewIconText(text='', bitmap=BitmapBundle()) -> None DataViewIconText(other) -> None
DataViewIconText is used by DataViewIconTextRenderer for data transfer.
Methods¶
- __init__(self, *args, **kw)¶
Constructor.
__init__ (self, text=’’, bitmap=BitmapBundle())
- Parameters:
text (string)
bitmap (wx.BitmapBundle)
- Return type:
None
__init__ (self, other)
- Parameters:
other (wx.dataview.DataViewIconText)
- Return type:
None
- GetBitmapBundle(self)¶
Gets the associated image.
- Return type:
Added 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, useGetBitmapBundle
to retrieve image representation suitable for anotherDPI
scaling value.- Return type:
- GetText(self)¶
Gets the text.
- Return type:
str
- 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 toSetIcon
.- Parameters:
bitmap (wx.BitmapBundle)
- Return type:
None
Added in version 4.1/wxWidgets-3.1.6.
- SetIcon(self, icon)¶
Set the icon.
Use
SetBitmapBundle
instead to allow specifying different image representations for differentDPI
scaling values.- Parameters:
icon (wx.Icon)
- Return type:
None
- SetText(self, text)¶
Set the text.
- Parameters:
text (string)
- Return type:
None
Properties¶
- BitmapBundle¶
See
GetBitmapBundle
andSetBitmapBundle