You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Base64 Encoder - encodes a folder of PNG files and creates a .py file with definitions
importPySimpleGUIassg
importos
importbase64
'''
Make base64 images
input: folder with .png .ico .gif 's
output: output.py file with variables
Copyright 2023 PySimpleSoft, Inc. and/or its licensors. All rights reserved.
Redistribution, modification, or any other use of PySimpleGUI or any portion thereof is subject to the terms of the PySimpleGUI License Agreement available at https://eula.pysimplegui.com.
You may not redistribute, modify or otherwise use PySimpleGUI or its contents except pursuant to the PySimpleGUI License Agreement.
'''
defmain():
OUTPUT_FILENAME='output.py'
folder=sg.popup_get_folder('Source folder for images\nImages will be encoded and results saved to %s'%OUTPUT_FILENAME,
title='Base64 Encoder')
ifnotfolder:
sg.popup_cancel('Cancelled - No valid folder entered')