@@ -1508,9 +1508,9 @@ def ver_number(var):
1508
1508
self .find_filename_glob_entry = Entry (find_filename_frame ,textvariable = self .find_name_glob_var ,validate = "key" )
1509
1509
self .find_filename_fuzz_entry = Entry (find_filename_frame ,textvariable = self .find_name_fuzz_var ,validate = "key" )
1510
1510
1511
- self .find_filename_regexp_entry .bind ("<KeyPress >" , self .find_mod_keypress )
1512
- self .find_filename_glob_entry .bind ("<KeyPress >" , self .find_mod_keypress )
1513
- self .find_filename_fuzz_entry .bind ("<KeyPress >" , self .find_mod_keypress )
1511
+ self .find_filename_regexp_entry .bind ("<KeyRelease >" , self .find_mod_keypress )
1512
+ self .find_filename_glob_entry .bind ("<KeyRelease >" , self .find_mod_keypress )
1513
+ self .find_filename_fuzz_entry .bind ("<KeyRelease >" , self .find_mod_keypress )
1514
1514
1515
1515
self .find_filename_regexp_entry .grid (row = 2 , column = 1 , sticky = 'we' ,padx = 4 ,pady = 4 )
1516
1516
self .find_filename_glob_entry .grid (row = 3 , column = 1 , sticky = 'we' ,padx = 4 ,pady = 4 )
@@ -1524,7 +1524,7 @@ def ver_number(var):
1524
1524
self .find_filename_fuzzy_threshold_lab .grid (row = 4 , column = 2 , sticky = 'wens' ,padx = 4 ,pady = 4 )
1525
1525
self .find_filename_fuzzy_threshold_entry .grid (row = 4 , column = 3 , sticky = 'wens' ,padx = 4 ,pady = 4 )
1526
1526
1527
- self .find_filename_fuzzy_threshold_entry .bind ("<KeyPress >" , self .find_mod_keypress )
1527
+ self .find_filename_fuzzy_threshold_entry .bind ("<KeyRelease >" , self .find_mod_keypress )
1528
1528
1529
1529
self .widget_tooltip (regexp_radio_name ,regexp_tooltip + regexp_tooltip_name )
1530
1530
self .widget_tooltip (self .find_filename_regexp_entry ,regexp_tooltip + regexp_tooltip_name )
@@ -1551,9 +1551,9 @@ def ver_number(var):
1551
1551
self .find_cd_glob_entry = Entry (find_cd_frame ,textvariable = self .find_cd_glob_var ,validate = "key" )
1552
1552
self .find_cd_fuzz_entry = Entry (find_cd_frame ,textvariable = self .find_cd_fuzz_var ,validate = "key" )
1553
1553
1554
- self .find_cd_regexp_entry .bind ("<KeyPress >" , self .find_mod_keypress )
1555
- self .find_cd_glob_entry .bind ("<KeyPress >" , self .find_mod_keypress )
1556
- self .find_cd_fuzz_entry .bind ("<KeyPress >" , self .find_mod_keypress )
1554
+ self .find_cd_regexp_entry .bind ("<KeyRelease >" , self .find_mod_keypress )
1555
+ self .find_cd_glob_entry .bind ("<KeyRelease >" , self .find_mod_keypress )
1556
+ self .find_cd_fuzz_entry .bind ("<KeyRelease >" , self .find_mod_keypress )
1557
1557
1558
1558
self .find_cd_regexp_entry .grid (row = 4 , column = 1 , sticky = 'we' ,padx = 4 ,pady = 4 )
1559
1559
self .find_cd_glob_entry .grid (row = 5 , column = 1 , sticky = 'we' ,padx = 4 ,pady = 4 )
@@ -1567,7 +1567,7 @@ def ver_number(var):
1567
1567
self .find_cd_fuzzy_threshold_lab .grid (row = 6 , column = 2 , sticky = 'wens' ,padx = 4 ,pady = 4 )
1568
1568
self .find_cd_fuzzy_threshold_entry .grid (row = 6 , column = 3 , sticky = 'wens' ,padx = 4 ,pady = 4 )
1569
1569
1570
- self .find_cd_fuzzy_threshold_entry .bind ("<KeyPress >" , self .find_mod_keypress )
1570
+ self .find_cd_fuzzy_threshold_entry .bind ("<KeyRelease >" , self .find_mod_keypress )
1571
1571
1572
1572
self .widget_tooltip (regexp_radio_cd ,regexp_tooltip + regexp_tooltip_cd )
1573
1573
self .widget_tooltip (self .find_cd_regexp_entry ,regexp_tooltip + regexp_tooltip_cd )
@@ -1596,8 +1596,8 @@ def validate_size_str(val):
1596
1596
find_size_max_entry = Entry (find_size_frame ,textvariable = self .find_size_max_var )
1597
1597
find_size_max_entry .grid (row = 0 , column = 3 , sticky = 'we' ,padx = 4 ,pady = 4 )
1598
1598
1599
- find_size_min_entry .bind ("<KeyPress >" , self .find_mod_keypress )
1600
- find_size_max_entry .bind ("<KeyPress >" , self .find_mod_keypress )
1599
+ find_size_min_entry .bind ("<KeyRelease >" , self .find_mod_keypress )
1600
+ find_size_max_entry .bind ("<KeyRelease >" , self .find_mod_keypress )
1601
1601
1602
1602
size_tooltip = 'Integer value [in bytes] or integer with unit.\n Leave the value blank to ignore this criterion.\n \n examples:\n 399\n 100B\n 125kB\n 10MB'
1603
1603
self .widget_tooltip (find_size_min_entry ,size_tooltip )
@@ -1616,8 +1616,8 @@ def validate_size_str(val):
1616
1616
find_modtime_max_entry = Entry (find_modtime_frame ,textvariable = self .find_modtime_max_var )
1617
1617
find_modtime_max_entry .grid (row = 0 , column = 3 , sticky = 'we' ,padx = 4 ,pady = 4 )
1618
1618
1619
- find_modtime_min_entry .bind ("<KeyPress >" , self .find_mod_keypress )
1620
- find_modtime_max_entry .bind ("<KeyPress >" , self .find_mod_keypress )
1619
+ find_modtime_min_entry .bind ("<KeyRelease >" , self .find_mod_keypress )
1620
+ find_modtime_max_entry .bind ("<KeyRelease >" , self .find_mod_keypress )
1621
1621
1622
1622
time_toltip = 'Date and time in the format below.\n Leave the value blank to ignore this criterion.\n \n examples:\n 2023-12-14 22:21:20\n 2023-12-14 22:21\n 2023-12-14\n 2023-12'
1623
1623
self .widget_tooltip (find_modtime_min_entry ,time_toltip )
@@ -2394,7 +2394,6 @@ def find_items(self):
2394
2394
self_progress_dialog_on_find_update_lab_image = self_progress_dialog_on_find .update_lab_image
2395
2395
self_get_hg_ico = self .get_hg_ico
2396
2396
2397
- last_res_check = 0
2398
2397
librer_core_files_search_quant = librer_core .files_search_quant
2399
2398
fnumber_librer_core_files_search_quant = fnumber (librer_core_files_search_quant )
2400
2399
fnumber_records_len = fnumber (records_len )
@@ -2405,12 +2404,7 @@ def find_items(self):
2405
2404
######################################################################################
2406
2405
2407
2406
change0 = self_progress_dialog_on_find_update_lab_text (0 ,librer_core .info_line )
2408
- if now > last_res_check + 1 :
2409
- #change3 = self_progress_dialog_on_find_update_lab_text(3,f'Found Files: {fnumber(librer_core.find_res_quant)} ({fnumber(len(librer_core.search_record_ref.find_results))})' )
2410
- change3 = self_progress_dialog_on_find_update_lab_text (3 ,f'Found Files: { fnumber (librer_core .find_res_quant )} ' )
2411
- last_res_check = now
2412
- else :
2413
- change3 = False
2407
+ change3 = self_progress_dialog_on_find_update_lab_text (3 ,f'Found Files: { fnumber (librer_core .find_res_quant )} ' )
2414
2408
2415
2409
curr_files = librer_core .total_search_progress
2416
2410
@@ -2424,8 +2418,6 @@ def find_items(self):
2424
2418
2425
2419
if self .action_abort :
2426
2420
librer_core .abort ()
2427
- #librer_core.search_record_ref.abort()
2428
- #break
2429
2421
2430
2422
if change0 or change3 or prev_curr_files != curr_files :
2431
2423
prev_curr_files = curr_files
0 commit comments