Known subclasses: kiwi.ui.widgets.label.Label

No class docstring
Method __init__ Create a new ProxyLabel object. @param label: initial text @param data_type: data type of label
Method prop_set_data_type Set the data type for the widget
Class Method replace Undocumented
Method read No summary
Method update Update the content value of the widget. @param value:
Method set_bold If True set the text to bold. False sets the text to normal
Method set_italic No summary
Method set_underline No summary
Method set_size No summary
Method set_text No summary
Method set_color Undocumented
Method _on_label_changed Undocumented
Method _apply_attributes Undocumented
Method _set_text_attribute Undocumented

Inherited from ProxyWidgetMixin:

Class Variable allowed_data_types A list of types which we are allowed to use in this class.
Method set_data_format Undocumented
Method set_options_for_datatype No summary
Method _as_string Convert a value to a string @param data: data to convert
Method _from_string No summary

Inherited from ProxyWidgetMixin:

Class Variable allowed_data_types A list of types which we are allowed to use in this class.
Method set_data_format Undocumented
Method set_options_for_datatype No summary
Method _as_string Convert a value to a string @param data: data to convert
Method _from_string No summary
def __init__(self, label='', data_type=None):

Create a new ProxyLabel object.

Parameterslabelinitial text
data_typedata type of label
def prop_set_data_type(self, data_type):

Set the data type for the widget

Parametersdata_typecan be None, a type object or a string with the name of the type object, so None, "<type 'str'>" or 'str'
@classmethod
def replace(cls, markup, value):
Undocumented
def _on_label_changed(self, label, param):
Undocumented
def read(self):

Get the content of the widget. The type of the return value

ReturnsNone if the user input a invalid value (type: Must matche the data-type property.)
def update(self, data):

Update the content value of the widget.

Parametersvalue
def _apply_attributes(self):
Undocumented
def _set_text_attribute(self, attribute_name, attr, value):
Undocumented
def set_bold(self, value):

If True set the text to bold. False sets the text to normal

def set_italic(self, value):

Enable or disable italic text

ParametersvalueAllowed values:
  • True: enable Italic attribute
  • False: disable Italic attribute
def set_underline(self, value):

Enable or disable underlined text

ParametersvalueAllowed values:
  • True: enable Underline attribute
  • Fase: disable Underline attribute
def set_size(self, size=None):

Set the size of the label. If size is empty the label will be set to the default size.

ParameterssizeAllowed values:
  • xx-small
  • x-small
  • small
  • medium,
  • large
  • x-large
  • xx-large
(type: string)
def set_text(self, text):

Overrides gtk.Label set_text method. Sets the new text of the label but keeps the formating

Parameterstextlabel (type: string)
def set_color(self, color):
Undocumented
API Documentation for Kiwi, generated by pydoctor at 2015-12-07 23:44:36.