From e0e3493d4f139fff00179d4bf1cf3e5334d4f07f Mon Sep 17 00:00:00 2001 From: "Fredrick W. Warren" Date: Wed, 18 May 2022 22:19:58 -0700 Subject: [PATCH] adding text input fields --- hcatitles.py | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/hcatitles.py b/hcatitles.py index 5754ea8..7abdf23 100644 --- a/hcatitles.py +++ b/hcatitles.py @@ -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-')], ])