adding text input fields

This commit is contained in:
Fredrick W. Warren 2022-05-18 22:19:58 -07:00
parent 0e15dff081
commit e0e3493d4f

View File

@ -1,4 +1,4 @@
import PySimpleGUIQt as sg
import PySimpleGUI as sg
from PIL import Image, ImageFilter, ImageOps
from io import BytesIO
@ -29,23 +29,13 @@ image_path = sg.popup_get_file('Open', no_window = True)
control_col = sg.Column([
[
sg.Frame('Blur',
layout = [[sg.Slider(range = (0, 10),
orientation = 'h',
key = '-BLUR-')]]
sg.Frame('Title',
layout = [[sg.Input(key = '-TITLE-')]]
)],
[
sg.Frame('Contrast',
layout = [[sg.Slider(range = (0, 10),
orientation = 'h',
key= '-CONTRAST-')]]
sg.Frame('SubTitle',
layout = [[sg.Input(key = '-SUBTITLE-')]]
)],
[
sg.Checkbox('Emboss', key = '-EMBOSS-'),
sg.Checkbox('Countour', key = '-CONTOUR-')],
[
sg.Checkbox('Flip x', key = '-FLIPX-'),
sg.Checkbox('Flip y', key = '-FLIPY-')],
[
sg.Button('Save image', key= '-SAVE-')],
])