iblrig.gui.tools.DiskSpaceIndicator
- class iblrig.gui.tools.DiskSpaceIndicator[source]
A custom progress bar widget that indicates the disk space usage of a specified directory.
- __init__(*args, directory, percent_threshold=90, **kwargs)[source]
Initialize the DiskSpaceIndicator with the specified directory and threshold percentage.
- Parameters:
*args (
tuple
) – Variable length argument list (passed to QProgressBar).directory (
Path
orNone
) – The directory path to monitor for disk space usage.percent_threshold (
int
, optional) – The threshold percentage at which the progress bar changes color to red. Default is 90.**kwargs (
dict
) – Arbitrary keyword arguments (passed to QProgressBar).
- Parameters: