How to use the easygui.boxes.multi_fillable_box.MultiBox function in easygui

To help you get started, we’ve selected a few easygui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github robertlugg / easygui / easygui / boxes / multi_fillable_box.py View on Github external
if fieldValues[i].strip() == "":
                    errmsg += ('"%s" is a required field.\n\n' % fieldNames[i])
            if errmsg == "":
                break # no problems found
            fieldValues = multenterbox(errmsg, title, fieldNames, fieldValues)

        print("Reply was: %s" % str(fieldValues))

    :param str msg: the msg to be displayed.
    :param str title: the window title
    :param list fields: a list of fieldnames.
    :param list values: a list of field values
    :return: String
    """
    if run:
        mb = MultiBox(msg, title, fields, values, mask_last=False,
                      callback=callback)
        reply = mb.run()
        return reply
    else:
        mb = MultiBox(msg, title, fields, values, mask_last=False,
                      callback=callback)
        return mb
github robertlugg / easygui / easygui / boxes / multi_fillable_box.py View on Github external
fieldNames, fieldValues)

        print("Reply was: %s" % str(fieldValues))

    """
    if run:
        mb = MultiBox(msg, title, fields, values, mask_last=True,
                      callback=callback)

        reply = mb.run()

        return reply

    else:

        mb = MultiBox(msg, title, fields, values, mask_last=True,
                      callback=callback)

        return mb
github robertlugg / easygui / easygui / boxes / multi_fillable_box.py View on Github external
while 1:
            if fieldValues is None: break
            errmsg = ""
            for i in range(len(fieldNames)):
                if fieldValues[i].strip() == "":
                    errmsg = errmsg + ('"%s" is a required field.\n\n' %
                     fieldNames[i])
                if errmsg == "": break # no problems found
            fieldValues = multpasswordbox(errmsg, title,
              fieldNames, fieldValues)

        print("Reply was: %s" % str(fieldValues))

    """
    if run:
        mb = MultiBox(msg, title, fields, values, mask_last=True,
                      callback=callback)

        reply = mb.run()

        return reply

    else:

        mb = MultiBox(msg, title, fields, values, mask_last=True,
                      callback=callback)

        return mb
github robertlugg / easygui / easygui / boxes / multi_fillable_box.py View on Github external
print("Reply was: %s" % str(fieldValues))

    :param str msg: the msg to be displayed.
    :param str title: the window title
    :param list fields: a list of fieldnames.
    :param list values: a list of field values
    :return: String
    """
    if run:
        mb = MultiBox(msg, title, fields, values, mask_last=False,
                      callback=callback)
        reply = mb.run()
        return reply
    else:
        mb = MultiBox(msg, title, fields, values, mask_last=False,
                      callback=callback)
        return mb

easygui

EasyGUI is a module for very simple, very easy GUI programming in Python. EasyGUI is different from other GUI generators in that EasyGUI is NOT event-driven. Instead, all GUI interactions are invoked by simple function calls.

BSD-3-Clause
Latest version published 2 years ago

Package Health Score

58 / 100
Full package analysis

Similar packages