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="", bitmap=BitmapBundle())

DataViewIconText(other)

DataViewIconText is used by DataViewIconTextRenderer for data transfer.


Methods

__init__(self, *args, **kw)

Constructor.

overload Overloaded Implementations:



__init__ (self, text=””, bitmap=BitmapBundle())

Parameters:



__init__ (self, other)

Parameters:

other (wx.dataview.DataViewIconText) –





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:

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 .

Parameters:

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.

Parameters:

icon (wx.Icon) –



SetText(self, text)

Set the text.

Parameters:

text (string) –


Properties

BitmapBundle

See GetBitmapBundle and SetBitmapBundle



Icon

See GetIcon and SetIcon



Text

See GetText and SetText