Git Product home page Git Product logo

ascii-font-processor's Introduction

Hi! ๐Ÿ‘‹

  • ๐Ÿ˜„ Gamification is one of my favorite adventures.
  • โšก Fun fact: I love to juggle on a unicycle!

ascii-font-processor's People

Contributors

nycynik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ascii-font-processor's Issues

Converted into a PySimpleGUI Demo Program....

Hiya!

You inspired me to take what you provided and do some refactoring, feature additions, etc, with the result being a Demo Program.

This is the start of the comment block at the top of the program, like in the other demo programs:

"""
    Adapted from code originally from this fantastic repository:
    https://github.com/nycynik/ascii-font-processor
    Thank you nycynik for a fantastic headstart
"""    

Some of the changes I made include:

  • There's a whole new parameter added to Multiline so that one can be created without a scrollbar
  • The wrap-length for the figlet is computed based on the width of the Multiline element
  • Removed the "show" button. Now the output is generated as the user types
  • Made into a single file by removing lots of code

I know you're building something bigger so you need the larger structure of your application. My demo is 46 lines of code so it's quite a bit less of your code, again because I'm doing so much less and don't have the same kind of bigger future waiting for it. I've dot a dead-end road... you've got the start of a highway ๐Ÿ‘

image

You'll find the demo here:
https://github.com/PySimpleGUI/PySimpleGUI/blob/master/DemoPrograms/Demo_pyfiglet.py

If you would like me to modify the attribution to you in any way, please let me know. Thank you for the inspiration!

For JSON support, consider using the User Settings APIs in PySimpleGUI

Have you seen the User Settings APIs that are now part of PySimpleGUI?

They were added a few releases ago and are not a very important part of the SDK.

I use them for many demos now and are also holding the "global settings" for all of PySimpleGUI.

PySimpleGUI is branching out a little by providing access to other libraries that a PySimpleGUI programmer may want to use:

  • Settings (User Settings APIs)
  • Starting other programs (Exec APIs)
  • Personalizing PySimpleGUI (global settings default theme)

You'll find the newer Demo Programs that have settings that use these new User Settings APIs. There is documentation on using them. NOTE - the Cookbook has an old manual way of creating your own settings file using JSON. The purpose of the User Settings APIs was to replace this technique (I'll replace that recipe).

Here is the primary documentation on them:
https://pysimplegui.readthedocs.io/en/latest/?#user-settings-api

In addition to settings windows, they are used for "history" of elements too.

The Demo Browser application is a newer one. Lets look at it:

image

There is a settings window that uses User Settings:

image

One of the items in this window is the path to the tree combo box:

image

It has a history of previously selected items. These items are stored in the same User Settings file as other items in this window.

The point here is that this API is good for a number of uses for programs. You don't have to have a settings window to have a need like this. Any piece of data that you want to store and retrieve later is a good candidate for User Settings.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.