From 32602b2316997e541ffaffada511a0b4237e6e24 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 13 Sep 2021 10:45:26 -0400 Subject: [PATCH] Added bring_to_front... OMG what a HUGE difference it made. Can press hotkey to run the program and focus remains after launch and can thus begin typing right away --- DemoPrograms/Browser_START_HERE_Demo_Programs_Browser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DemoPrograms/Browser_START_HERE_Demo_Programs_Browser.py b/DemoPrograms/Browser_START_HERE_Demo_Programs_Browser.py index e9e541a9..c8e35183 100644 --- a/DemoPrograms/Browser_START_HERE_Demo_Programs_Browser.py +++ b/DemoPrograms/Browser_START_HERE_Demo_Programs_Browser.py @@ -206,7 +206,7 @@ def find_in_file(string, demo_files_dict, regex=False, verbose=False, window=Non """ - # So you face a prediciment here. You wish to read files, both small and large; however the bigger the file/bigger the list, the longer to read the file. + # So you face a predicament here. You wish to read files, both small and large; however the bigger the file/bigger the list, the longer to read the file. # This probably isn't what you want, right? # Well, we can't use a direct command line to run grep and parse. But it is an option. The user may not have it. # We could check if grep exists and if not use our method; but it isn't the best way. @@ -513,6 +513,7 @@ def make_window(): window['-OPTIONS BOTTOM-'].update(visible=False) # sg.cprint_set_output_destination(window, ML_KEY) + window.bring_to_front() return window