Skip to main content

Magically turn your CLI into a GUI program and make it more user friendly.

Project description

guiprint

https://img.shields.io/pypi/v/guiprint.svg https://img.shields.io/travis/ashrafulislambd/guiprint.svg Documentation Status

Magically turn your CLI into a GUI program and make it more user friendly.

  • Free software: MIT license

Features

  • Replaces print() with a nice dialog box

  • Replaces input() with a nice input dialog.

Installation

Open your terminal and type the line below to install guiprint

pip install guiprint

In order to use it, first import it and write the following code at the very beginning. Try it on your existing project and your CLI should turn into a basic GUI program.

import guiprint
print = guiprint.print
input = guiprint.input

After just inserting these lines before any existing CLI program, run the program again and see the magic!

Additional Features

To use the Input function as a Yes/No Dialog box, set the optional mode parameter to ‘yesno’ like this,

x = input("Are you sure?", mode="yesno")

You can also let user choose an option from multiple options like this,

x = input("What's your favorite cricket team?: ", mode="multiple", options=["Bangladesh", "Zimbabwe", "Australia"])

Author: Md. Ashraful Islam

History

0.1.0 (2022-07-17)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

guiprint-1.0.5.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

guiprint-1.0.5-py2.py3-none-any.whl (4.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file guiprint-1.0.5.tar.gz.

File metadata

  • Download URL: guiprint-1.0.5.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for guiprint-1.0.5.tar.gz
Algorithm Hash digest
SHA256 dc9f6c738fc3da291d47ac2e6f7fec7f548e412b8e708bb5266ed8920ae6c0cd
MD5 1ca353a4b072f9a378de33353e37c51d
BLAKE2b-256 28688f1f9c7731b1583225d6d789f62549f7ef0efb3ae6a38cb39bc766196b46

See more details on using hashes here.

File details

Details for the file guiprint-1.0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: guiprint-1.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for guiprint-1.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8c84e39dbb80f4e58133e3a1140a57705e6d995f84ac54b9568430d6abec7bb1
MD5 87182fa3f2f7ddeba1850c4cb1dd73fe
BLAKE2b-256 8597ba024320ebac74823260531df07b8943b7a59700da2c8252ded9dbfae236

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page