Merge pull request #1562 from PySimpleGUI/Dev-latest

Set Print/EasyPrint parameter do_not_reroute_stdout=True. Was suppose…
This commit is contained in:
MikeTheWatchGuy 2019-06-16 09:17:52 -04:00 committed by GitHub
commit b43ced8c75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -4645,7 +4645,7 @@ def FolderBrowse(button_text='Browse', target=(ThisRow, -1), initial_folder=None
auto_size_button=None, button_color=None, disabled=False, change_submits=False, enable_events=False,
font=None, pad=None, key=None):
'''
:param button_text:
:param target:
:param initial_folder:
@ -7008,7 +7008,7 @@ def PrintClose():
def EasyPrint(*args, size=(None, None), end=None, sep=None, location=(None, None), font=None, no_titlebar=False,
no_button=False, grab_anywhere=False, keep_on_top=False, do_not_reroute_stdout=False):
no_button=False, grab_anywhere=False, keep_on_top=False, do_not_reroute_stdout=True):
if DebugWin.debug_window is None:
DebugWin.debug_window = DebugWin(size=size, location=location, font=font, no_titlebar=no_titlebar,
no_button=no_button, grab_anywhere=grab_anywhere, keep_on_top=keep_on_top,

View File

@ -4978,11 +4978,11 @@ if sys.version_info[0] >= 3:
if item_without_key[0] == MENU_DISABLED_CHARACTER:
top_menu.add_command(label=item_without_key[len(MENU_DISABLED_CHARACTER):], underline=pos,
command=lambda: element.MenuItemChosenCallback(sub_menu_info))
command=lambda: element._MenuItemChosenCallback(sub_menu_info))
top_menu.entryconfig(item_without_key[len(MENU_DISABLED_CHARACTER):], state='disabled')
else:
top_menu.add_command(label=item_without_key, underline=pos,
command=lambda: element.MenuItemChosenCallback(sub_menu_info))
command=lambda: element._MenuItemChosenCallback(sub_menu_info))
else:
i = 0
while i < (len(sub_menu_info)):
@ -5027,11 +5027,11 @@ else:
if item_without_key[0] == MENU_DISABLED_CHARACTER:
top_menu.add_command(label=item_without_key[len(MENU_DISABLED_CHARACTER):], underline=pos,
command=lambda: element.MenuItemChosenCallback(sub_menu_info))
command=lambda: element._MenuItemChosenCallback(sub_menu_info))
top_menu.entryconfig(item_without_key[len(MENU_DISABLED_CHARACTER):], state='disabled')
else:
top_menu.add_command(label=item_without_key, underline=pos,
command=lambda: element.MenuItemChosenCallback(sub_menu_info))
command=lambda: element._MenuItemChosenCallback(sub_menu_info))
else:
i = 0
while i < (len(sub_menu_info)):