Skip to content

Commit 65a48fa

Browse files
committed
Changed getting filename to save as. Was trying to get the file as an "oipen" instead of save
1 parent e177615 commit 65a48fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PySimpleGUI_Colorizer.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import PySimpleGUI as sg
2020
import os.path
2121

22-
version = '2 April 2020'
22+
version = '7 June 2020'
2323

2424
prototxt = r'model/colorization_deploy_v2.prototxt'
2525
model = r'model/colorization_release_v2.caffemodel'
@@ -186,7 +186,7 @@ def convert_to_grayscale(frame):
186186
window['-OUT-'].update('')
187187
break
188188
elif event == '-SAVE-' and colorized is not None: # Clicked the Save File button
189-
filename = sg.popup_get_file('Save colorized image.\nColorized image be saved in format matching the extension you enter.')
189+
filename = sg.popup_get_file('Save colorized image.\nColorized image be saved in format matching the extension you enter.', save_as=True)
190190
try:
191191
if filename:
192192
cv2.imwrite(filename, colorized)

0 commit comments

Comments
 (0)