Save file to correct location
This commit is contained in:
parent
c99fa6d239
commit
2a0110fe34
@ -1,5 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
import PySimpleGUI as sg
|
import PySimpleGUI as sg
|
||||||
|
from pathlib import Path
|
||||||
from PIL import Image, ImageDraw, ImageEnhance, ImageFilter, ImageFont, ImageOps
|
from PIL import Image, ImageDraw, ImageEnhance, ImageFilter, ImageFont, ImageOps
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
|
||||||
@ -120,7 +121,7 @@ def main():
|
|||||||
|
|
||||||
|
|
||||||
if event == "-SAVE-":
|
if event == "-SAVE-":
|
||||||
save_path = 'Title.png'
|
save_path = save_filename()
|
||||||
image.save(save_path, 'PNG')
|
image.save(save_path, 'PNG')
|
||||||
|
|
||||||
window.close()
|
window.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user