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 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-')],
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user