METADATA 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Metadata-Version: 2.4
  2. Name: PyMsgBox
  3. Version: 2.0.1
  4. Summary: A simple, cross-platform, pure Python module for JavaScript-like message boxes.
  5. Author-email: Al Sweigart <al@inventwithpython.com>
  6. Maintainer-email: Al Sweigart <al@inventwithpython.com>
  7. License: Copyright (c) 2014, Al Sweigart
  8. All rights reserved.
  9. Redistribution and use in source and binary forms, with or without
  10. modification, are permitted provided that the following conditions are met:
  11. * Redistributions of source code must retain the above copyright notice, this
  12. list of conditions and the following disclaimer.
  13. * Redistributions in binary form must reproduce the above copyright notice,
  14. this list of conditions and the following disclaimer in the documentation
  15. and/or other materials provided with the distribution.
  16. * Neither the name of the {organization} nor the names of its
  17. contributors may be used to endorse or promote products derived from
  18. this software without specific prior written permission.
  19. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  20. AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  21. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  22. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  23. FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  24. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  25. SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  26. CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  27. OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29. Project-URL: Homepage, https://github.com/asweigart/pymsgbox
  30. Project-URL: Repository, https://github.com/asweigart/pymsgbox
  31. Project-URL: Documentation, https://github.com/asweigart/pymsgbox
  32. Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
  33. Classifier: Programming Language :: Python
  34. Classifier: Programming Language :: Python :: 3
  35. Classifier: Programming Language :: Python :: 3.4
  36. Classifier: Programming Language :: Python :: 3.5
  37. Classifier: Programming Language :: Python :: 3.6
  38. Classifier: Programming Language :: Python :: 3.7
  39. Classifier: Programming Language :: Python :: 3.8
  40. Classifier: Programming Language :: Python :: 3.9
  41. Classifier: Programming Language :: Python :: 3.10
  42. Classifier: Programming Language :: Python :: 3.11
  43. Classifier: Programming Language :: Python :: 3.12
  44. Classifier: Programming Language :: Python :: 3.13
  45. Classifier: Programming Language :: Python :: 3.14
  46. Requires-Python: >=3.4
  47. Description-Content-Type: text/markdown
  48. License-File: LICENSE.txt
  49. License-File: AUTHORS.txt
  50. Dynamic: license-file
  51. PyMsgBox
  52. ========
  53. A simple, cross-platform, pure Python module for JavaScript-like message boxes.
  54. To import, run:
  55. >>> from pymsgbox import *`
  56. There are four functions in PyMsgBox, which follow JavaScript's message box naming conventions:
  57. >>> alert(text='', title='', button='OK')`
  58. Displays a simple message box with text and a single OK button. Returns the text of the button clicked on.
  59. >>> confirm(text='', title='', buttons=['OK', 'Cancel'])`
  60. 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.
  61. >>> prompt(text='', title='' , defaultValue='')`
  62. Displays a message box with text input, and OK & Cancel buttons. Returns the text entered, or None if Cancel was clicked.
  63. >>> password(text='', title='', defaultValue='', mask='*')`
  64. 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.
  65. On Linux Python 2, you need to first install Tkinter by running: sudo apt-get install python-tk
  66. Modified BSD License
  67. Derived from Stephen Raymond Ferg's EasyGui http://easygui.sourceforge.net/
  68. Support
  69. -------
  70. 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).