PyMsgBox


NamePyMsgBox JSON
Version 2.0.1 PyPI version JSON
download
home_pageNone
SummaryA simple, cross-platform, pure Python module for JavaScript-like message boxes.
upload_time2025-09-09 00:38:56
maintainerNone
docs_urlNone
authorNone
requires_python>=3.4
licenseCopyright (c) 2014, Al Sweigart All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the {organization} nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            PyMsgBox
========

 A simple, cross-platform, pure Python module for JavaScript-like message boxes.

To import, run:

    >>> from pymsgbox import *`

 There are four functions in PyMsgBox, which follow JavaScript's message box naming conventions:

    >>> alert(text='', title='', button='OK')`

    Displays a simple message box with text and a single OK button. Returns the text of the button clicked on.

    >>> confirm(text='', title='', buttons=['OK', 'Cancel'])`

    Displays a message box with OK and Cancel buttons. Number and text of buttons can be customized. Returns the text of the button clicked on.

    >>> prompt(text='', title='' , defaultValue='')`

    Displays a message box with text input, and OK & Cancel buttons. Returns the text entered, or None if Cancel was clicked.

    >>> password(text='', title='', defaultValue='', mask='*')`

    Displays a message box with text input, and OK & Cancel buttons. Typed characters appear as *. Returns the text entered, or None if Cancel was clicked.

On Linux Python 2, you need to first install Tkinter by running: sudo apt-get install python-tk

Modified BSD License

Derived from Stephen Raymond Ferg's EasyGui http://easygui.sourceforge.net/

Support
-------

If you find this project helpful and would like to support its development, [consider donating to its creator on Patreon](https://www.patreon.com/AlSweigart).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "PyMsgBox",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.4",
    "maintainer_email": "Al Sweigart <al@inventwithpython.com>",
    "keywords": null,
    "author": null,
    "author_email": "Al Sweigart <al@inventwithpython.com>",
    "download_url": "https://files.pythonhosted.org/packages/ae/6a/e80da7594ee598a776972d09e2813df2b06b3bc29218f440631dfa7c78a8/pymsgbox-2.0.1.tar.gz",
    "platform": null,
    "description": "PyMsgBox\n========\n\n A simple, cross-platform, pure Python module for JavaScript-like message boxes.\n\nTo import, run:\n\n    >>> from pymsgbox import *`\n\n There are four functions in PyMsgBox, which follow JavaScript's message box naming conventions:\n\n    >>> alert(text='', title='', button='OK')`\n\n    Displays a simple message box with text and a single OK button. Returns the text of the button clicked on.\n\n    >>> confirm(text='', title='', buttons=['OK', 'Cancel'])`\n\n    Displays a message box with OK and Cancel buttons. Number and text of buttons can be customized. Returns the text of the button clicked on.\n\n    >>> prompt(text='', title='' , defaultValue='')`\n\n    Displays a message box with text input, and OK & Cancel buttons. Returns the text entered, or None if Cancel was clicked.\n\n    >>> password(text='', title='', defaultValue='', mask='*')`\n\n    Displays a message box with text input, and OK & Cancel buttons. Typed characters appear as *. Returns the text entered, or None if Cancel was clicked.\n\nOn Linux Python 2, you need to first install Tkinter by running: sudo apt-get install python-tk\n\nModified BSD License\n\nDerived from Stephen Raymond Ferg's EasyGui http://easygui.sourceforge.net/\n\nSupport\n-------\n\nIf you find this project helpful and would like to support its development, [consider donating to its creator on Patreon](https://www.patreon.com/AlSweigart).\n",
    "bugtrack_url": null,
    "license": "Copyright (c) 2014, Al Sweigart\n        All rights reserved.\n        \n        Redistribution and use in source and binary forms, with or without\n        modification, are permitted provided that the following conditions are met:\n        \n        * Redistributions of source code must retain the above copyright notice, this\n          list of conditions and the following disclaimer.\n        \n        * Redistributions in binary form must reproduce the above copyright notice,\n          this list of conditions and the following disclaimer in the documentation\n          and/or other materials provided with the distribution.\n        \n        * Neither the name of the {organization} nor the names of its\n          contributors may be used to endorse or promote products derived from\n          this software without specific prior written permission.\n        \n        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n        AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n        IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n        DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n        FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n        DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n        SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n        CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n        OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n        OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n        ",
    "summary": "A simple, cross-platform, pure Python module for JavaScript-like message boxes.",
    "version": "2.0.1",
    "project_urls": {
        "Documentation": "https://github.com/asweigart/pymsgbox",
        "Homepage": "https://github.com/asweigart/pymsgbox",
        "Repository": "https://github.com/asweigart/pymsgbox"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6f3e08c8cac81b2b2f7502746e6b9c8e5b0ec6432cd882c605560fc409aaf087",
                "md5": "cc91bde417ce827182c289c0129e3784",
                "sha256": "5de8ec19bca2ca7e6c09d39c817c83f17c75cee80275235f43a9931db699f73b"
            },
            "downloads": -1,
            "filename": "pymsgbox-2.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cc91bde417ce827182c289c0129e3784",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.4",
            "size": 9994,
            "upload_time": "2025-09-09T00:38:55",
            "upload_time_iso_8601": "2025-09-09T00:38:55.672960Z",
            "url": "https://files.pythonhosted.org/packages/6f/3e/08c8cac81b2b2f7502746e6b9c8e5b0ec6432cd882c605560fc409aaf087/pymsgbox-2.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ae6ae80da7594ee598a776972d09e2813df2b06b3bc29218f440631dfa7c78a8",
                "md5": "ba437513437c934317a50e548f4a6647",
                "sha256": "98d055c49a511dcc10fa08c3043e7102d468f5e4b3a83c6d3c61df722c7d798d"
            },
            "downloads": -1,
            "filename": "pymsgbox-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ba437513437c934317a50e548f4a6647",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.4",
            "size": 20768,
            "upload_time": "2025-09-09T00:38:56",
            "upload_time_iso_8601": "2025-09-09T00:38:56.863895Z",
            "url": "https://files.pythonhosted.org/packages/ae/6a/e80da7594ee598a776972d09e2813df2b06b3bc29218f440631dfa7c78a8/pymsgbox-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-09 00:38:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "asweigart",
    "github_project": "pymsgbox",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "pymsgbox"
}
        
Elapsed time: 4.43294s