First Commit
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: PyMsgBox
|
||||
Version: 2.0.1
|
||||
Summary: A simple, cross-platform, pure Python module for JavaScript-like message boxes.
|
||||
Author-email: Al Sweigart <al@inventwithpython.com>
|
||||
Maintainer-email: Al Sweigart <al@inventwithpython.com>
|
||||
License: Copyright (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.
|
||||
|
||||
Project-URL: Homepage, https://github.com/asweigart/pymsgbox
|
||||
Project-URL: Repository, https://github.com/asweigart/pymsgbox
|
||||
Project-URL: Documentation, https://github.com/asweigart/pymsgbox
|
||||
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3.4
|
||||
Classifier: Programming Language :: Python :: 3.5
|
||||
Classifier: Programming Language :: Python :: 3.6
|
||||
Classifier: Programming Language :: Python :: 3.7
|
||||
Classifier: Programming Language :: Python :: 3.8
|
||||
Classifier: Programming Language :: Python :: 3.9
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: 3.11
|
||||
Classifier: Programming Language :: Python :: 3.12
|
||||
Classifier: Programming Language :: Python :: 3.13
|
||||
Classifier: Programming Language :: Python :: 3.14
|
||||
Requires-Python: >=3.4
|
||||
Description-Content-Type: text/markdown
|
||||
License-File: LICENSE.txt
|
||||
License-File: AUTHORS.txt
|
||||
Dynamic: license-file
|
||||
|
||||
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).
|
||||
Reference in New Issue
Block a user