self.scan_resolution = spin_resolution.get_value_as_int() self.scan_brightness = spin_brightness.get_value_as_int() self.scan_area = combobox_scan_area.get_active() self.scan_driver = combobox_scan_driver.get_active() self.number_of_pages_to_scan = spin_number_of_pages_to_scan.get_value_as_int( ) self.time_between_repeated_scanning = spin_time_bitween_repeted_scanning.get_value_as_int( ) self.scanner_mode_switching = int( checkbutton_scan_mode_switching.get_active()) self.run_text_cleaner = int( checkbutton_run_text_cleaner.get_active()) self.scanner_cache_calibration = int( checkbutton_scanner_cache_calibration.get_active()) dlg.destroy() return True dlg.destroy() return False if "__main__" == __name__: a = lios_preferences() a.set_avalable_ocr_engines([]) a.set_avalable_scanner_drivers([]) a.open_configure_dialog() a.open_configure_dialog() loop.start_main_loop()
def __init__(self,image_list = []): win = TesseractTrainer(image_list) win.connect_close_function(self.close) win.show() loop.start_main_loop()
self.starting_page_number=spin_starting_page_number.get_value_as_int(); self.scan_resolution = spin_resolution.get_value_as_int(); self.scan_brightness=spin_brightness.get_value_as_int(); self.scan_area=combobox_scan_area.get_active(); self.scan_driver=combobox_scan_driver.get_active(); self.number_of_pages_to_scan=spin_number_of_pages_to_scan.get_value_as_int(); self.time_between_repeated_scanning=spin_time_bitween_repeted_scanning.get_value_as_int(); self.scanner_mode_switching=int(checkbutton_scan_mode_switching.get_active()) self.run_text_cleaner=int(checkbutton_run_text_cleaner.get_active()) self.scanner_cache_calibration=int(checkbutton_scanner_cache_calibration.get_active()) dlg.destroy() return True dlg.destroy() return False if "__main__" == __name__: a = lios_preferences() a.set_avalable_ocr_engines([]) a.set_avalable_scanner_drivers([]) a.open_configure_dialog() a.open_configure_dialog() loop.start_main_loop()
def __init__(self,image_list = []): win = TesseractTrainer(image_list) win.connect_close_function(self.close) win.show() loop.threads_init() loop.start_main_loop()