How to use the easygui.boxes.alt_text_box.TextBox 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 / alt_text_box.py View on Github external
This function is suitable for displaying general written text.

    The text parameter should be a string, or a list or tuple of lines to be
    displayed in the textbox.

    :param str msg: the msg to be displayed
    :param str title: the window title
    :param str text: what to display in the textbox
    :param str self.codebox: if 1, act as a codebox
    :param callback: if set, this function will be called when OK is pressed
    :param run: if True, a box object will be created and returned, but not run
    :str self.codebox: if 1, act as a codebox
    """

    if run:
        tb = TextBox(msg=msg, title=title, text=text,
                     codebox=codebox, callback=callback)
        reply = tb.run()
        return reply
    else:
        tb = TextBox(msg=msg, title=title, text=text,
                     codebox=codebox, callback=callback)
        return tb
github robertlugg / easygui / easygui / boxes / alt_text_box.py View on Github external
:param str msg: the msg to be displayed
    :param str title: the window title
    :param str text: what to display in the textbox
    :param str self.codebox: if 1, act as a codebox
    :param callback: if set, this function will be called when OK is pressed
    :param run: if True, a box object will be created and returned, but not run
    :str self.codebox: if 1, act as a codebox
    """

    if run:
        tb = TextBox(msg=msg, title=title, text=text,
                     codebox=codebox, callback=callback)
        reply = tb.run()
        return reply
    else:
        tb = TextBox(msg=msg, title=title, text=text,
                     codebox=codebox, callback=callback)
        return tb

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