Class k.u.w.e.ProxyEntry(KiwiEntry, ValidatableProxyWidgetMixin):

Part of kiwi.ui.widgets.entry

known subclasses: kiwi.ui.widgets.entry.Entry

The Kiwi Entry widget has many special features that extend the basic gtk entry.

First of all, as every Kiwi Widget, it implements the Proxy protocol. As the users types the entry can interact with the application model automatically. Kiwi Entry also implements interesting UI additions. If the input data does not match the data type of the entry the background nicely fades to a light red color. As the background changes an information icon appears. When the user passes the mouse over the information icon a tooltip is displayed informing the user how to correctly fill the entry. When dealing with date and float data-type the information on how to fill these entries is displayed according to the current locale.

Function__init__Undocumented
Function__post_init__

A hook which is called after the constructor is called.

Functiondo_changedUndocumented
Functionprop_set_data_type

Set the data type for the widget

Functionset_mask_for_data_type

Set a mask for the parameter data_type.

Functionset_completion_strings

Set strings used for entry completion.

Functionset_text

Sets the text of the entry

Functionread

Get the content of the widget.

Functionupdate

Update the content value of the widget.

def __init__(self, data_type=None):
Undocumented
def __post_init__(self):

A hook which is called after the constructor is called. It's mainly here to workaround http://bugzilla.gnome.org/show_bug.cgi?id=425501 so you can set properties at construction time

def do_changed(self):
Undocumented
def prop_set_data_type(self, data_type):

Set the data type for the widget

def set_mask_for_data_type(self, data_type):

Set a mask for the parameter data_type.

def set_completion_strings(self, strings=, values=):

Set strings used for entry completion. If values are provided, each string will have an additional data type.

def set_text(self, text):

Sets the text of the entry

def read(self):

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

def update(self, data):

Update the content value of the widget.