Beispiel #1
0
def lineEditFilter(widget, master, value, *arg, **args):
    callback = args.get("callback", None)
    args["callback"] = None  # we will have our own callback handler
    args["baseClass"] = LineEditFilter
    le = lineEdit(widget, master, value, *arg, **args)
    le.__dict__.update(args)
    le.callback = callback
    le.focusOutEvent(None)
    return le
Beispiel #2
0
def lineEditFilter(widget, master, value, *arg, **args):
    callback = args.get("callback", None)
    args["callback"] = None         # we will have our own callback handler
    args["baseClass"] = LineEditFilter
    le = lineEdit(widget, master, value, *arg, **args)
    le.__dict__.update(args)
    le.callback = callback
    le.focusOutEvent(None)
    return le
Beispiel #3
0
def lineEditHint(widget, master, value, *arg, **args):
    callback = args.get("callback", None)
    args["callback"] = None         # we will have our own callback handler
    args["baseClass"] = LineEditHint
    le = lineEdit(widget, master, value, *arg, **args)
    le.setDelimiters(args.get("delimiters", None))      # what are characters that are possible delimiters between items in the edit box
    le.setItems(args.get("items", []))          # items that will be suggested for selection
    le.__dict__.update(args)
    le.callbackOnComplete = callback                                    # this is called when the user selects one of the items in the list
    return le
Beispiel #4
0
def lineEditHint(widget, master, value, *arg, **args):
    callback = args.get("callback", None)
    args["callback"] = None         # we will have our own callback handler
    args["baseClass"] = LineEditHint
    le = lineEdit(widget, master, value, *arg, **args)
    le.setDelimiters(args.get("delimiters", None))      # what are characters that are possible delimiters between items in the edit box
    le.setItems(args.get("items", []))          # items that will be suggested for selection
    le.__dict__.update(args)
    le.callbackOnComplete = callback                                    # this is called when the user selects one of the items in the list
    return le