From 2a0110fe34b6767b21d31a075fa56098dd2e2ca8 Mon Sep 17 00:00:00 2001 From: "Fredrick W. Warren" Date: Mon, 30 May 2022 22:37:50 -0700 Subject: [PATCH] Save file to correct location --- hcatitles.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hcatitles.py b/hcatitles.py index f04f6f5..891f709 100644 --- a/hcatitles.py +++ b/hcatitles.py @@ -1,5 +1,6 @@ import os import PySimpleGUI as sg +from pathlib import Path from PIL import Image, ImageDraw, ImageEnhance, ImageFilter, ImageFont, ImageOps from io import BytesIO @@ -120,7 +121,7 @@ def main(): if event == "-SAVE-": - save_path = 'Title.png' + save_path = save_filename() image.save(save_path, 'PNG') window.close()