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)
| File | Size | Uploaded | |
|---|---|---|---|
| pymsgbox-2.0.1.tar.gz | 20.8 kB | 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
|