adding text input fields
This commit is contained in:
parent
0e15dff081
commit
e0e3493d4f
20
hcatitles.py
20
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-')],
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user