Class k.u.e.KiwiEntry(PropertyObject, gtk.Entry):

Part of kiwi.ui.entry

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

The KiwiEntry is a Entry subclass with the following additions:

Function__init__Undocumented
Functiondo_size_allocate 0Undocumented
Functiondo_size_allocateUndocumented
Functiondo_expose_eventUndocumented
Functiondo_realizeUndocumented
Functiondo_unrealizeUndocumented
Functionprop_set_exact_completionUndocumented
Functionprop_set_completionUndocumented
Functionprop_set_maskUndocumented
Functionset_textUndocumented
Functionset_mask

Sets the mask of the Entry.

Functionget_mask

Get the mask.

Functionget_field_textUndocumented
Functionget_fields

Get the fields assosiated with the entry.

Functionget_empty_mask

Gets the empty mask between start and end

Functionget_field_pos

Get the position at the specified field.

Function_get_field_ideal_posUndocumented
Functionget_fieldUndocumented
Functionset_fieldUndocumented
Functionget_field_lengthUndocumented
Function_shift_text

Shift the text, to the right or left, n positions. Note that this

Function_get_next_non_static_char_pos

Get next non-static char position, skiping some chars, if necessary.

Function_get_field_at_pos

Return the field index at position pos.

Functionset_exact_completion

Enable exact entry completion.

Functionis_emptyUndocumented
Function_really_delete_textUndocumented
Function_really_insert_textUndocumented
Function_insert_maskUndocumented
Function_confirms_to_maskUndocumented
Function_update_current_objectUndocumented
Function_get_text_from_objectUndocumented
Function_get_completionUndocumented
Functionget_completionUndocumented
Functionset_completionUndocumented
Function_completion_exact_match_funcUndocumented
Function_completion_normal_match_funcUndocumented
Function_on_completion__match_selectedUndocumented
Function_appers_later

Check if a char appers later on the mask. If it does, return

Function_can_insert_at_pos

Check if a chararcter can be inserted at some position

Function_insert_at_pos

Inserts the character at the give position in text. Note that the

Function_on_insert_textUndocumented
Function_on_delete_textUndocumented
Function_after_grab_focusUndocumented
Function_on_focusUndocumented
Function_on_notify_selection_boundUndocumented
Function_handle_position_changeUndocumented
Function_on_changedUndocumented
Function_on_focus_out_eventUndocumented
Function_on_move_cursorUndocumented
Functionset_tooltipUndocumented
Functionset_pixbufUndocumented
Functionupdate_backgroundUndocumented
Functionget_backgroundUndocumented
Functionget_icon_windowUndocumented
Functionprefill

See kiwi.interfaces.IEasyCombo.prefill

Functionget_iter_by_dataUndocumented
Functionget_iter_by_labelUndocumented
Functionget_selected_by_iterUndocumented
Functionget_selected_labelUndocumented
Functionget_selected_dataUndocumented
Functionget_iter_from_objUndocumented
Functionget_modeUndocumented
def __init__(self):
Undocumented
def do_size_allocate 0(self, allocation):
Undocumented
def do_size_allocate(self, allocation):
Undocumented
def do_expose_event(self, event):
Undocumented
def do_realize(self):
Undocumented
def do_unrealize(self):
Undocumented
def prop_set_exact_completion(self, value):
Undocumented
def prop_set_completion(self, value):
Undocumented
def prop_set_mask(self, value):
Undocumented
def set_text(self, text):
Undocumented
def set_mask(self, mask):

Sets the mask of the Entry. Supported format characters are:

  • '0' digit
  • 'L' ascii letter (a-z and A-Z)
  • '&' alphabet, honors the locale
  • 'a' alphanumeric, honors the locale
  • 'A' alphanumeric, honors the locale

This is similar to MaskedTextBox: http://msdn2.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.mask(VS.80).aspx

Example mask for a ISO-8601 date >>> entry.set_mask('0000-00-00')

def get_mask(self):

Get the mask.

def get_field_text(self, field):
Undocumented
def get_fields(self):

Get the fields assosiated with the entry. A field is dynamic content separated by static. For example, the format string 000-000 has two fields separated by a dash. if a field is empty it'll return an empty string otherwise it'll include the content

def get_empty_mask(self, start=None, end=None):

Gets the empty mask between start and end

def get_field_pos(self, field):

Get the position at the specified field.

def _get_field_ideal_pos(self, field):
Undocumented
def get_field(self):
Undocumented
def set_field(self, field, select=False):
Undocumented
def get_field_length(self, field):
Undocumented
def _shift_text(self, start, end, direction=Direction.LEFT, positions=1):

Shift the text, to the right or left, n positions. Note that this does not change the entry text. It returns the shifted text.

def _get_next_non_static_char_pos(self, pos, direction=Direction.LEFT, skip=0):

Get next non-static char position, skiping some chars, if necessary.

def _get_field_at_pos(self, pos, dir=None):

Return the field index at position pos.

def set_exact_completion(self, value):

Enable exact entry completion. Exact means it needs to start with the value typed and the case needs to be correct.

def is_empty(self):
Undocumented
def _really_delete_text(self, start, end):
Undocumented
def _really_insert_text(self, text, position):
Undocumented
def _insert_mask(self, start, end):
Undocumented
def _confirms_to_mask(self, position, text):
Undocumented
def _update_current_object(self, text):
Undocumented
def _get_text_from_object(self, obj):
Undocumented
def _get_completion(self):
Undocumented
def get_completion(self):
Undocumented
def set_completion(self, completion):
Undocumented
def _completion_exact_match_func(self, completion, key, iter):
Undocumented
def _completion_normal_match_func(self, completion, key, iter):
Undocumented
def _on_completion__match_selected(self, completion, model, iter):
Undocumented
def _appers_later(self, char, start):

Check if a char appers later on the mask. If it does, return the field it appers at. returns False otherwise.

def _can_insert_at_pos(self, new, pos):

Check if a chararcter can be inserted at some position

def _insert_at_pos(self, text, new, pos):

Inserts the character at the give position in text. Note that the insertion won't be applied to the entry, but to the text provided.

def _on_insert_text(self, editable, new, length, position):
Undocumented
def _on_delete_text(self, editable, start, end):
Undocumented
def _after_grab_focus(self, widget):
Undocumented
def _on_focus(self, widget, direction):
Undocumented
def _on_notify_selection_bound(self, widget, pspec):
Undocumented
def _handle_position_change(self):
Undocumented
def _on_changed(self, widget):
Undocumented
def _on_focus_out_event(self, widget, event):
Undocumented
def _on_move_cursor(self, entry, step, count, extend_selection):
Undocumented
def set_tooltip(self, text):
Undocumented
def set_pixbuf(self, pixbuf):
Undocumented
def update_background(self, color):
Undocumented
def get_background(self):
Undocumented
def get_icon_window(self):
Undocumented
def prefill(self, itemdata, sort=False):

See kiwi.interfaces.IEasyCombo.prefill

def get_iter_by_data(self, data):
Undocumented
def get_iter_by_label(self, label):
Undocumented
def get_selected_by_iter(self, treeiter):
Undocumented
def get_selected_label(self, treeiter):
Undocumented
def get_selected_data(self, treeiter):
Undocumented
def get_iter_from_obj(self, obj):
Undocumented
def get_mode(self):
Undocumented