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.
Metadata
Release files for PyMsgBox 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pymsgbox-2.0.1.tar.gz | 20.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pymsgbox-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.8 kB
Release files / pymsgbox-2.0.1.tar.gz
| Download URL | pymsgbox-2.0.1.tar.gz |
|---|---|
| Size | 20.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98d055c49a511dcc10fa08c3043e7102d468f5e4b3a83c6d3c61df722c7d798d
|
|
BLAKE2b-256 checksum How to use checksums |
ae6ae80da7594ee598a776972d09e2813df2b06b3bc29218f440631dfa7c78a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / pymsgbox-2.0.1-py3-none-any.whl
| Download URL | pymsgbox-2.0.1-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5de8ec19bca2ca7e6c09d39c817c83f17c75cee80275235f43a9931db699f73b
|
|
BLAKE2b-256 checksum How to use checksums |
6f3e08c8cac81b2b2f7502746e6b9c8e5b0ec6432cd882c605560fc409aaf087
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for PyMsgBox 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.