@@ -378,6 +378,13 @@ def process_thread(process_datasets, output_dir):
378378 processing_thread = None
379379 processing_thread_lock .release ()
380380
381+ def txt_no_input_onkey (event ):
382+ # TODO: check for mac
383+ if event .state == 12 and event .keysym == 'c' :
384+ return
385+ else :
386+ return "break"
387+
381388
382389 # elements
383390 y_pos = 10
@@ -436,10 +443,12 @@ def process_thread(process_datasets, output_dir):
436443 btn_process = tk .Button (win , text = "Start" , command = btn_process_start_onclick , state = 'disabled' )
437444 btn_process .place (x = 10 , y = y_pos , width = window_width - 20 , height = 40 )
438445 y_pos += 40 + 2
439- txt_console = tk .Text (win )
446+ txt_console = tk .Text (win , highlightthickness = 0 , borderwidth = 1 , relief = "solid" , undo = False , maxundo = - 1 , background = 'systemWindowBackgroundColor' )
447+ txt_console .bind ("<Key>" , lambda e : txt_no_input_onkey (e ))
448+
440449 scr_subsets = tk .Scrollbar (win , orient = 'vertical' )
441- txt_console .place (x = 12 , y = y_pos , width = window_width - 42 , height = 120 )
442- scr_subsets .place (x = window_width - 33 , y = y_pos + 3 , width = 20 , height = 120 - 6 )
450+ txt_console .place (x = 12 , y = y_pos , width = window_width - 45 , height = 120 )
451+ scr_subsets .place (x = window_width - 33 , y = y_pos , width = 20 , height = 120 )
443452 txt_console .config (yscrollcommand = scr_subsets .set )
444453 scr_subsets .config (command = txt_console .yview )
445454 y_pos += 120 + 2
0 commit comments