Skip to main content

Create Figlets using a PySimpleGUI GUI and pyfiglet. A PySimpleGUI Demo Program.

Project description

Python GUIs for Humans

Figlet Creation

Create Figlets easily using this application created using PySimpleGUI.

Installation

Old-school Straight Pip

pip install psgfiglet

pip via python -m pip the python recommended way

If python is your command

python -m pip install psgfiglet

If python3 is your command

python3 -m pip install psgfiglet

Usage

To run the program and create your own Figlets type from your command prompt:

psgfiglet

About - What is a Figlet?

A Figlet is a text based way to add large block text to your code or chats. There are a variety of "Fonts" available that you'll find listed along the left side of the screen.

psgfiglet

To use in your code

The easiest way to is make a multiline string in your code using triple quotes:

'''
This is a multiline string
Line 2
'''

You can simply paste your Figlet into one of these multiline comments. They work well at breaking up your code into chunks

'''
                    oo          

88d8b.d8b. .d8888b. dP 88d888b. 
88'`88'`88 88'  `88 88 88'  `88 
88  88  88 88.  .88 88 88    88 
dP  dP  dP `88888P8 dP dP    dP
'''

def main():
    x = 20

Windows Special Instructions

Want to make this install even more usable on Windows?

Head over to the PySimpleGUI Demo Programs and get the program: Demo_Make_Windows_Shortcut

Use this program to make a shortcut to psgfiglet that you can then put on your desktop or pin to your taskbar or ???

image

To do this, follow these steps:

  1. Open a command window (I promise, it's the last time you'll need to for this program)
  2. Type - where psgfiglet
  3. Copy the line that "where psgfiglet" gave you into the first input of the shortcut maker program
  4. Run psgfiglet
  5. Right click and choose "File Location"
  6. Copy the file location results, but change the extension from .py to .ico and paste into the Icon file input of the shortcut maker
  7. Click "Create Shortcut"

This will create a shortcut in the same folder as the psgfiglet.exe file. You can safely move this shortcut file to any place you want (like to your desktop). Double-click the shortcut and psgfiglet should launch.

Uses Open Source Packages

pyfiglet - "An implementation of figlet written in Python"

https://github.com/pwaller/pyfiglet The pyfiglet package was generously licensed with an MIT license.

                  .8888b oo          dP            dP   
                  88   "             88            88   
88d888b. dP    dP 88aaa  dP .d8888b. 88 .d8888b. d8888P 
88'  `88 88    88 88     88 88'  `88 88 88ooood8   88   
88.  .88 88.  .88 88     88 88.  .88 88 88.  ...   88   
88Y888P' `8888P88 dP     dP `8888P88 dP `88888P'   dP   
88            .88                .88                    
dP        d8888P             d8888P

PySimpleGUIwww.PySimpleGUI.com

Origin

                                             oo dP       
                                                88       
88d888b. dP    dP .d8888b. dP    dP 88d888b. dP 88  .dP  
88'  `88 88    88 88'  `"" 88    88 88'  `88 88 88888"   
88    88 88.  .88 88.  ... 88.  .88 88    88 88 88  `8b. 
dP    dP `8888P88 `88888P' `8888P88 dP    dP dP dP   `YP 
              .88               .88                      
          d8888P            d8888P

This program originated with user nycynik.with his ascii-font-processor project.

Then Mike from the PySimpleGUI project started with his project and modified it.

It's one of the many PySimpleGUI-based programs I use daily. It's the first in a series of "Application Releases" that are hosted on PyPI.org

Special Thanks



 /__  ___/                                  \\    / /                      
   / /  / __      ___       __     / ___     \\  / /  ___                  
  / /  //   ) ) //   ) ) //   ) ) //\ \       \\/ / //   ) ) //   / /      
 / /  //   / / //   / / //   / / //  \ \       / / //   / / //   / /       
/ /  //   / / ((___( ( //   / / //    \ \     / / ((___/ / ((___( ( ()()()

Paolo Amoroso - showed us the path to successfully releasing PySimpleGUI applications via PyPI with his Spacestills project.

MM'""""'YMM dP                 a8888a           oo          M""""""""M 
M' .mmm. `M 88                d8' ..8b                      Mmmm  mmmM 
M  MMMMMooM 88d888b. 88d888b. 88 .P 88 88d888b. dP .d8888b. MMMM  MMMM 
M  MMMMMMMM 88'  `88 88'  `88 88 d' 88 88'  `88 88 88'  `"" MMMM  MMMM 
M. `MMM' .M 88    88 88       Y8'' .8P 88    88 88 88.  ... MMMM  MMMM 
MM.     .dM dP    dP dP        Y8888P  dP    dP dP `88888P' MMMM  MMMM 
MMMMMMMMMMM                                                 MMMMMMMMMM

Tanay Findley - Fantastic PySimpleGUI programmer that created a template to make these console-less PySimpleGUI Applications.

License

Licensed under an LGPL3 License

This PyPI Was Designed and Written By

Mike from PySimpleGUI.org - The pieces assembler.

Contributing

Like the PySimpleGUI project, this project is currently licensed under an open-source license, the project itself is structured like a proprietary product. Pull Requests are not accepted.

Copyright

Copyright 2021 PySimpleGUI

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

psgfiglet-1.20.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

psgfiglet-1.20.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file psgfiglet-1.20.0.tar.gz.

File metadata

  • Download URL: psgfiglet-1.20.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.0 pkginfo/1.4.2 requests/2.26.0 requests-toolbelt/0.8.0 tqdm/4.62.0 CPython/3.6.2

File hashes

Hashes for psgfiglet-1.20.0.tar.gz
Algorithm Hash digest
SHA256 8962c51d7fae0fb870236b86b35e5d611cf1fe5d4c4f7c5f6a48e70e3dcb9636
MD5 8d9ae8b495316bab43a78fb737735cb1
BLAKE2b-256 b0279b7cca11e2d96d6eea534b505d3089da822ae9a50fb2a0586b875c8db3da

See more details on using hashes here.

File details

Details for the file psgfiglet-1.20.0-py3-none-any.whl.

File metadata

  • Download URL: psgfiglet-1.20.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.0 pkginfo/1.4.2 requests/2.26.0 requests-toolbelt/0.8.0 tqdm/4.62.0 CPython/3.6.2

File hashes

Hashes for psgfiglet-1.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5eebe0669cf5679d93961bf0d24d83d6be850526c2739311df108b2267d4cbb5
MD5 3625b4e29d7280b83e3cff04a52801a9
BLAKE2b-256 d08fa559a71fb5a0802f7e85ff7ec0411f080652d6c86e2347ef4fee080f616f

See more details on using hashes here.

Supported by

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