Set Print/EasyPrint parameter do_not_reroute_stdout=True. Was supposed to be True. Not sure what happened.

This commit is contained in:
MikeTheWatchGuy 2019-06-16 09:17:22 -04:00
parent c940ab2ec7
commit 220b33348f
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, auto_size_button=None, button_color=None, disabled=False, change_submits=False, enable_events=False,
font=None, pad=None, key=None): font=None, pad=None, key=None):
''' '''
:param button_text: :param button_text:
:param target: :param target:
:param initial_folder: :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, 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: if DebugWin.debug_window is None:
DebugWin.debug_window = DebugWin(size=size, location=location, font=font, no_titlebar=no_titlebar, 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, 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: if item_without_key[0] == MENU_DISABLED_CHARACTER:
top_menu.add_command(label=item_without_key[len(MENU_DISABLED_CHARACTER):], underline=pos, 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') top_menu.entryconfig(item_without_key[len(MENU_DISABLED_CHARACTER):], state='disabled')
else: else:
top_menu.add_command(label=item_without_key, underline=pos, 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: else:
i = 0 i = 0
while i < (len(sub_menu_info)): while i < (len(sub_menu_info)):
@ -5027,11 +5027,11 @@ else:
if item_without_key[0] == MENU_DISABLED_CHARACTER: if item_without_key[0] == MENU_DISABLED_CHARACTER:
top_menu.add_command(label=item_without_key[len(MENU_DISABLED_CHARACTER):], underline=pos, 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') top_menu.entryconfig(item_without_key[len(MENU_DISABLED_CHARACTER):], state='disabled')
else: else:
top_menu.add_command(label=item_without_key, underline=pos, 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: else:
i = 0 i = 0
while i < (len(sub_menu_info)): while i < (len(sub_menu_info)):