Merge pull request #2199 from PySimpleGUI/Dev-latest
Removed use of CloseButton for popups that return values. Still have…
This commit is contained in:
commit
a27a80f7d0
|
@ -11267,7 +11267,7 @@ def PopupGetFolder(message, title=None, default_path='', no_window=False, size=(
|
||||||
layout = [[Text(message, auto_size_text=True, text_color=text_color, background_color=background_color)],
|
layout = [[Text(message, auto_size_text=True, text_color=text_color, background_color=background_color)],
|
||||||
[InputText(default_text=default_path, size=size, key='_INPUT_'),
|
[InputText(default_text=default_path, size=size, key='_INPUT_'),
|
||||||
FolderBrowse(initial_folder=initial_folder)],
|
FolderBrowse(initial_folder=initial_folder)],
|
||||||
[CloseButton('Ok', size=(5, 1), bind_return_key=True), CloseButton('Cancel', size=(5, 1))]]
|
[Button('Ok', size=(5, 1), bind_return_key=True), Button('Cancel', size=(5, 1))]]
|
||||||
|
|
||||||
window = Window(title=title or message, layout=layout, icon=icon, auto_size_text=True, button_color=button_color,
|
window = Window(title=title or message, layout=layout, icon=icon, auto_size_text=True, button_color=button_color,
|
||||||
background_color=background_color,
|
background_color=background_color,
|
||||||
|
@ -11365,7 +11365,7 @@ def PopupGetFile(message, title=None, default_path='', default_extension='', sav
|
||||||
|
|
||||||
layout = [[Text(message, auto_size_text=True, text_color=text_color, background_color=background_color)],
|
layout = [[Text(message, auto_size_text=True, text_color=text_color, background_color=background_color)],
|
||||||
[InputText(default_text=default_path, size=size, key='_INPUT_'), browse_button],
|
[InputText(default_text=default_path, size=size, key='_INPUT_'), browse_button],
|
||||||
[CloseButton('Ok', size=(6, 1), bind_return_key=True), CloseButton('Cancel', size=(6, 1))]]
|
[Button('Ok', size=(6, 1), bind_return_key=True), Button('Cancel', size=(6, 1))]]
|
||||||
|
|
||||||
window = Window(title=title or message, layout=layout, icon=icon, auto_size_text=True, button_color=button_color,
|
window = Window(title=title or message, layout=layout, icon=icon, auto_size_text=True, button_color=button_color,
|
||||||
font=font,
|
font=font,
|
||||||
|
@ -11408,7 +11408,7 @@ def PopupGetText(message, title=None, default_text='', password_char='', size=(N
|
||||||
|
|
||||||
layout = [[Text(message, auto_size_text=True, text_color=text_color, background_color=background_color, font=font)],
|
layout = [[Text(message, auto_size_text=True, text_color=text_color, background_color=background_color, font=font)],
|
||||||
[InputText(default_text=default_text, size=size, key='_INPUT_', password_char=password_char)],
|
[InputText(default_text=default_text, size=size, key='_INPUT_', password_char=password_char)],
|
||||||
[CloseButton('Ok', size=(5, 1), bind_return_key=True), CloseButton('Cancel', size=(5, 1))]]
|
[Button('Ok', size=(5, 1), bind_return_key=True), Button('Cancel', size=(5, 1))]]
|
||||||
|
|
||||||
window = Window(title=title or message, layout=layout, icon=icon, auto_size_text=True, button_color=button_color,
|
window = Window(title=title or message, layout=layout, icon=icon, auto_size_text=True, button_color=button_color,
|
||||||
no_titlebar=no_titlebar,
|
no_titlebar=no_titlebar,
|
||||||
|
|
Loading…
Reference in New Issue