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 PIL import Image, ImageFilter, ImageOps
from io import BytesIO from io import BytesIO
@ -29,23 +29,13 @@ image_path = sg.popup_get_file('Open', no_window = True)
control_col = sg.Column([ control_col = sg.Column([
[ [
sg.Frame('Blur', sg.Frame('Title',
layout = [[sg.Slider(range = (0, 10), layout = [[sg.Input(key = '-TITLE-')]]
orientation = 'h',
key = '-BLUR-')]]
)], )],
[ [
sg.Frame('Contrast', sg.Frame('SubTitle',
layout = [[sg.Slider(range = (0, 10), layout = [[sg.Input(key = '-SUBTITLE-')]]
orientation = 'h',
key= '-CONTRAST-')]]
)], )],
[
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-')], sg.Button('Save image', key= '-SAVE-')],
]) ])