添加 ProgressInfoBar 组件

This commit is contained in:
2025-05-26 18:32:01 +08:00
parent 811cb9eb6b
commit e3fde36390
4 changed files with 130 additions and 6 deletions

View File

@@ -176,15 +176,13 @@ def gen_picture(data: list[list[str]], kpi_number: int, start_index: int, end_in
return res
if __name__ == '__main__':
nums = [1, 2, 3, '4(1)', '42']
formatted_ranges = format_ranges(nums)
print(formatted_ranges)
def resource_path(relative_path: str) -> str:
if hasattr(sys, '_MEIPASS'):
base_path = sys._MEIPASS
else:
base_path = os.path.abspath(".")
return os.path.join(base_path, relative_path)
def is_frozen() -> bool:
return getattr(sys, 'frozen', False)