Class k.u.p.ValidatableProxyWidgetMixin(ProxyWidgetMixin):

Part of kiwi.ui.proxywidget

known subclasses: kiwi.ui.widgets.entry.ProxyEntry, kiwi.ui.widgets.entry.ProxyDateEntry, kiwi.ui.widgets.combo.ProxyComboBoxEntry, kiwi.ui.widgets.combo.ProxyComboEntry, kiwi.ui.widgets.spinbutton.ProxySpinButton, kiwi.ui.widgets.textview.ProxyTextView

Class used by some Kiwi Widgets that need to support mandatory input and validation features such as custom validation and data-type validation.

Mandatory support provides a way to warn the user when input is necessary. The validatation feature provides a way to check the data entered and to display information about what is wrong.

Function__init__Undocumented
Functionupdate_background

Implement in subclass

Functionget_background

Implement in subclass

Functionset_pixbuf

Implement in subclass

Functionget_icon_window

Implement in subclass

Functionset_tooltip

Implement in subclass

Functionis_valid

Verify the widget state.

Functionvalidate

Checks if the data is valid.

Functionset_valid

Changes the validation state to valid, which will remove icons and

Functionset_invalid

Changes the validation state to invalid.

Functionset_blank

Changes the validation state to blank state, this only applies

Function_set_valid_state

Updates the validation state and emits a signal iff it changed

Function_draw_stock_iconUndocumented
Function_on_fadeout__color_changedUndocumented
def __init__(self, widget=None):
Undocumented
def update_background(self, color):

Implement in subclass

def get_background(self):

Implement in subclass

def set_pixbuf(self, pixbuf):

Implement in subclass

def get_icon_window(self):

Implement in subclass

def set_tooltip(self, text):

Implement in subclass

def is_valid(self):

Verify the widget state.

def validate(self, force=False):

Checks if the data is valid. Validates data-type and custom validation.

def set_valid(self):

Changes the validation state to valid, which will remove icons and reset the background color

def set_invalid(self, text=None, fade=True):

Changes the validation state to invalid.

def set_blank(self):

Changes the validation state to blank state, this only applies for mandatory widgets, draw an icon and set a tooltip

def _set_valid_state(self, state):

Updates the validation state and emits a signal iff it changed

def _draw_stock_icon(self, stock_id):
Undocumented
def _on_fadeout__color_changed(self, fadeout, color):
Undocumented