Skip to main content

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

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

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 asterisks. Returns the text entered, or None if Cancel was clicked.

Modified BSD License

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

Metadata

Release files for PyMsgBox 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyMsgBox 1.0.3
File Size Uploaded Provenance
PyMsgBox-1.0.3.zip 21.5 kB Without provenance Details

Release files / PyMsgBox-1.0.3.zip

Download URL PyMsgBox-1.0.3.zip
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b32c26663b0673942f900be39b0024af1df7106410e43368061342832e634afc
BLAKE2b-256 checksum
How to use checksums
c8a45c1f13a8ab1f53986a4f9add1e4924be71ce22e79812f24cd09c2cb65686
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for PyMsgBox 1.0.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page