Skip to main content

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.

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)

Source distribution for PyMsgBox 2.0.1
File Size Uploaded
pymsgbox-2.0.1.tar.gz 20.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyMsgBox 2.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

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