File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
seleniumbase/console_scripts Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def set_colors(use_colors):
46
46
c0 = colorama .Fore .BLUE + colorama .Back .LIGHTCYAN_EX
47
47
c1 = colorama .Fore .BLUE + colorama .Back .LIGHTGREEN_EX
48
48
c2 = colorama .Fore .RED + colorama .Back .LIGHTYELLOW_EX
49
- c3 = colorama .Fore .LIGHTGREEN_EX + colorama .Back .BLACK
49
+ c3 = colorama .Fore .BLACK + colorama .Back .LIGHTGREEN_EX
50
50
c4 = colorama .Fore .BLUE + colorama .Back .LIGHTYELLOW_EX
51
51
c5 = colorama .Fore .RED + colorama .Back .LIGHTYELLOW_EX
52
52
cr = colorama .Style .RESET_ALL
@@ -255,7 +255,7 @@ def create_tkinter_gui(tests, command_string):
255
255
count = 0
256
256
ara = {}
257
257
for row in tests :
258
- row += " " * 400
258
+ row += " " * 200
259
259
ara [count ] = tk .IntVar ()
260
260
cb = tk .Checkbutton (
261
261
text_area ,
@@ -327,6 +327,14 @@ def create_tkinter_gui(tests, command_string):
327
327
328
328
# Bring form window to front
329
329
send_window_to_front (root )
330
+ # Use decoy to set correct focus on main window
331
+ decoy = tk .Tk ()
332
+ decoy .geometry ("1x1" )
333
+ decoy .iconify ()
334
+ decoy .update ()
335
+ decoy .deiconify ()
336
+ decoy .destroy ()
337
+ # Start tkinter
330
338
root .mainloop ()
331
339
332
340
Original file line number Diff line number Diff line change @@ -192,6 +192,14 @@ def create_tkinter_gui():
192
192
193
193
# Bring form window to front
194
194
send_window_to_front (window )
195
+ # Use decoy to set correct focus on main window
196
+ decoy = tk .Tk ()
197
+ decoy .geometry ("1x1" )
198
+ decoy .iconify ()
199
+ decoy .update ()
200
+ decoy .deiconify ()
201
+ decoy .destroy ()
202
+ # Start tkinter
195
203
window .mainloop ()
196
204
197
205
You can’t perform that action at this time.
0 commit comments