Skip to content
Permalink
Browse files
Latest readme creator flies
  • Loading branch information
PySimpleGUI committed Apr 14, 2020
1 parent 314d6e4 commit e7b5e5b5289a31871b1a2a57def9d4c5e2d6d78a
Showing 8 changed files with 4,331 additions and 4,762 deletions.
@@ -0,0 +1,2 @@

readme_creator/psg_gui.py

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -1093,7 +1093,7 @@ Quick patch to remove change to popup
Quick patch to remove f-string for 3.5 compat.


## 4.16.0 PySimpleGUI 08-Jan-2020
## 4.16.0 PySimpleGUI 20-Feb-2020

The "LONG time coming" release. System Tray, Read with close + loads more changes
Note - there is a known problem with the built-in debugger created when the new read with close was added
@@ -1124,6 +1124,55 @@ Note - there is a known problem with the built-in debugger created when the new
* print_to_element - print-like call that can be used to output to a Multiline element as if it is an Output element


## 4.17.0 PySimpleGUI 24-Mar-2020

The "it's been a minute" release
Improved DocStrings and documentation!
Upgrade utility
"Printing" directly to Multiline

* New upgrade utility to upgrade your installed package using GitHub version
* Can invoke from command line. Run `python -m PySimpleGUI.PySimpleGUI upgrade`
* The test harness GUI has an upgrade button
* Multiline.print - Add multiline element to the front of any print statement. Also supports color output
* Debug informmation like path and version displayed in test harness GUI
* Added back the TRANSPARENT_BUTTON variable until can find a better way to deprecate
* All elements were losing padding when made invisible. Fixed
* Image.update - fixed crash due to not checking for type before getting size
* Image.update_animation_no_buffering - playback GIF animations of any length
* Graph element - Fixed divide by zero error in convert function
* TabGroup will now autonumber keys if none specified
* Measuring strings more accurately during layout
* Using specific font for measurement
* Used to compute TTK button height
* Used to compute Slider length
* Used to compute header widths in Tables, Trees
* Used to compute column widths in Tables, Trees
* Used to compute row heights in Tables
* Removed padx from row frames. Was using window's margins. Now padx & pady = 0. Was causing too every Column element to have extra padding
* Added no_titlebar to one line progress meter
* popup_notify - Creates a "notification window" that is like the System Tray Message window
* shell_with_animation - launch a shell command that runs while an animated GIF is shown
* Fixed problem with debugger not working after the recent close parameter addition to Window.read


## 4.18.0 PySimpleGUI 26-Mar-2020

An "Oh F**k" Release - Table column sizes were bad

* Fixed bug in Table Element's column size computation
* popup_animated has new title parameter
* Checkbox - update can change the text


## 4.18.1 PySimpleGUI 12-Apr-2020

Emergency patch - f-string managed to get into the code resulting crashes on 3.5 systems (Pi's for example)

## 4.18.2 PySimpleGUI 12-Apr-2020

The Epic Fail release.... import error on 3.5 for subprocess.



### Upcoming
@@ -0,0 +1,9 @@
build:
python3 make_real_readme.py
rm usage.log.txt

build2:
python3 make_real_readme.py

clean:
rm usage.log.txt

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -0,0 +1,100 @@
from make_real_readme import main

########################################################################
# __ _ _ #
# / _(_) | | #
# __ __ ___ ___ _ __ | |_ _ __ _ | |__ ___ _ __ ___ #
# \ \ / / / __/ _ \| '_ \| _| |/ _` | | '_ \ / _ \ '__/ _ \ #
# \ V / | (_| (_) | | | | | | | (_| | | | | | __/ | | __/ #
# \_/ \___\___/|_| |_|_| |_|\__, | |_| |_|\___|_| \___| #
# __/ | #
# |___/ #
########################################################################
OUTPUT_FILENAME = 'readme.md'

##-#-#-# ##-#-#-#
# Pre-process logic
##-#-#-# ##-#-#-#

line_break = '<br>'
# line_break can be:
# - '<br>'
# - ' \n '

method = 'with logs'
# method can be:
# - 'simple, no log'
# - 'with logs'


##-#-#-# ##-#-#-#
# Post-process logic
##-#-#-# ##-#-#-#
enable_popup = True
insert_md_section_for__class_methods = False
remove_repeated_sections_classmethods = False



##############
# __ #
# /_ | #
# | | #
# | | #
# | | #
# |_| #
##############
if method == 'simple, no log':
main(logger=None,
insert_md_section_for__class_methods=insert_md_section_for__class_methods,
remove_repeated_sections_classmethods=remove_repeated_sections_classmethods,
files_to_include=[0, 1, 2, 3],
output_name=OUTPUT_FILENAME,
delete_html_comments=True)

################
# ___ #
# |__ \ #
# ) | #
# / / #
# / /_ #
# |____| #
################
if method == 'with logs':

import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)

my_file = logging.FileHandler('usage.log.txt', mode='w')
my_file.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(asctime)s>%(levelname)s: %(message)s')
my_file.setFormatter(formatter)
logger.addHandler(my_file)
logger.info('STARTING')

main(logger=logger,
insert_md_section_for__class_methods=insert_md_section_for__class_methods,
remove_repeated_sections_classmethods=remove_repeated_sections_classmethods,
files_to_include=[0, 1, 2, 3],
output_name=OUTPUT_FILENAME,
delete_html_comments=True)

########################################
# _____ #
# | __ \ #
# | |__) |__ _ __ _ _ _ __ #
# | ___/ _ \| '_ \| | | | '_ \ #
# | | | (_) | |_) | |_| | |_) | #
# |_| \___/| .__/ \__,_| .__/ #
# | | | | #
# |_| |_| #
########################################
if enable_popup:
import PySimpleGUI as sg

with open('usage.log.txt', 'r') as ff:
lines = ff.read()
sg.PopupScrolled('Completed making ' + OUTPUT_FILENAME, lines, size=(80,50))


0 comments on commit e7b5e5b

Please sign in to comment.