lib.file_helpers.*¶
Provides
-
exception
lib.file_helpers.ProgressDialogCanceled[source]¶ Bases:
ExceptionRaised when a progress dialog is canceled
-
lib.file_helpers.file_progress_gen(main_window, file, title, label, no_lines, step=100)[source]¶ A generator for file iteration that displays a progress bar
Yields (line number, line string). Return value on user cancel via progress dialog is current line number
- Parameters
- Return type
-
lib.file_helpers.linecount(infile, buffer_size=1048576)[source]¶ Count lines in infile
Starts at current position in file. Position is not preserved. Idea taken from https://stackoverflow.com/questions/845058
-
lib.file_helpers.progress_dialog(main_window, title, label, maximum)[source]¶ contextmanagerthat displays a progress dialog- Parameters
- Return type
ContextManager[QProgressDialog]
pyspread