Class v.c.V.ValidatedEntry(gtk.Entry):

Part of vmc.contrib.ValidatedEntry View In Hierarchy

No class docstring
Method __init__ Create instance of validating gtk.Entry.
Method isvalid Undocumented
def __init__(self, valid_func, _max=0, use_bg=True, valid_bg=white, partial_bg=light_red, error_func=None):
Create instance of validating gtk.Entry.

valid_func: the function to validate input.  See module doc
            string for details.

max: passed to gtk.Entry constructor. (default: 0)

use_bg: if True (the default) set the base color of the
        widget to indicate validity; see valid_bg and partial_bg.

valid_bg: a gtk.gdk.Color; the base color of the widget when
          the input is valid. (default: white)

partial_bg: a gtk.gdk.Color; the base color of the widget when
            the input is partially valid. (default: yellow)

error_func: a function to call (with no arguments) when
            valid_func returns INVALID.  If None (the default)
            the default action will be to emit a short beep.
def isvalid(self):
Undocumented
def __insert_text_cb(self, entry, text, length, position):
callback for "insert-text" signal
def __delete_text_cb(self, entry, start, end):
callback for "delete-text" signal
def __validate(self, text, signal):
calls the user-provided validation function
API Documentation for vodafone-mobile-connect-card-driver-for-linux, generated by pydoctor at 2008-01-10 13:06:31.