phoenix_title 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 Class Hierarchy

Inheritance diagram for class DataViewIconText:

sub_classes Known Subclasses

wx.dataview.DataViewCheckIconText


method_summary Methods Summary

__init__

Constructor.

GetBitmapBundle

Gets the associated image.

GetIcon

Gets the icon.

GetText

Gets the text.

SetBitmapBundle

Sets the associated image.

SetIcon

Set the icon.

SetText

Set the text.


property_summary Properties Summary

BitmapBundle

See GetBitmapBundle and SetBitmapBundle

Icon

See GetIcon and SetIcon

Text

See GetText and SetText


api Class API

class 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.


Methods

__init__(self, *args, **kw)

Constructor.

overload Overloaded Implementations:



__init__ (self, text: str=’’, bitmap: BitmapBundle=BitmapBundle())

Parameters:
Return type:

None



__init__ (self, other : DataViewIconText)

Parameters:

other (wx.dataview.DataViewIconText) –

Return type:

None





GetBitmapBundle(self)

Gets the associated image.

Return type:

BitmapBundle

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.

Return type:

Icon



GetText(self)

Gets the text.

Return type:

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 .

Parameters:

bitmap (wx.BitmapBundle) –

Return type:

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.

Parameters:

icon (wx.Icon) –

Return type:

None



SetText(self, text : str)

Set the text.

Parameters:

text (string) –

Return type:

None


Properties

BitmapBundle

See GetBitmapBundle and SetBitmapBundle



Icon

See GetIcon and SetIcon



Text

See GetText and SetText