From 6dc655898df34ad424dfc467a8b276fdf31bd791 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 5 Jun 2024 06:45:15 +0200 Subject: Merging upstream version 3.0.46. Signed-off-by: Daniel Baumann --- examples/progress-bar/a-lot-of-parallel-tasks.py | 1 + examples/progress-bar/colored-title-and-label.py | 1 + examples/progress-bar/custom-key-bindings.py | 1 + examples/progress-bar/many-parallel-tasks.py | 1 + examples/progress-bar/nested-progress-bars.py | 1 + examples/progress-bar/scrolling-task-name.py | 1 + examples/progress-bar/simple-progress-bar.py | 1 + examples/progress-bar/styled-1.py | 1 + examples/progress-bar/styled-2.py | 1 + examples/progress-bar/styled-apt-get-install.py | 1 + examples/progress-bar/styled-rainbow.py | 1 + examples/progress-bar/styled-tqdm-1.py | 1 + examples/progress-bar/styled-tqdm-2.py | 1 + examples/progress-bar/two-tasks.py | 1 + examples/progress-bar/unknown-length.py | 1 + 15 files changed, 15 insertions(+) (limited to 'examples/progress-bar') diff --git a/examples/progress-bar/a-lot-of-parallel-tasks.py b/examples/progress-bar/a-lot-of-parallel-tasks.py index 31110ac..a209827 100755 --- a/examples/progress-bar/a-lot-of-parallel-tasks.py +++ b/examples/progress-bar/a-lot-of-parallel-tasks.py @@ -2,6 +2,7 @@ """ More complex demonstration of what's possible with the progress bar. """ + import random import threading import time diff --git a/examples/progress-bar/colored-title-and-label.py b/examples/progress-bar/colored-title-and-label.py index 0b5e73a..bdea5b9 100755 --- a/examples/progress-bar/colored-title-and-label.py +++ b/examples/progress-bar/colored-title-and-label.py @@ -3,6 +3,7 @@ A progress bar that displays a formatted title above the progress bar and has a colored label. """ + import time from prompt_toolkit.formatted_text import HTML diff --git a/examples/progress-bar/custom-key-bindings.py b/examples/progress-bar/custom-key-bindings.py index f700811..f276a1e 100755 --- a/examples/progress-bar/custom-key-bindings.py +++ b/examples/progress-bar/custom-key-bindings.py @@ -3,6 +3,7 @@ A very simple progress bar which keep track of the progress as we consume an iterator. """ + import os import signal import time diff --git a/examples/progress-bar/many-parallel-tasks.py b/examples/progress-bar/many-parallel-tasks.py index dc34ef2..f3af4fe 100755 --- a/examples/progress-bar/many-parallel-tasks.py +++ b/examples/progress-bar/many-parallel-tasks.py @@ -2,6 +2,7 @@ """ More complex demonstration of what's possible with the progress bar. """ + import threading import time diff --git a/examples/progress-bar/nested-progress-bars.py b/examples/progress-bar/nested-progress-bars.py index 1a1e706..cfbf5f2 100755 --- a/examples/progress-bar/nested-progress-bars.py +++ b/examples/progress-bar/nested-progress-bars.py @@ -2,6 +2,7 @@ """ Example of nested progress bars. """ + import time from prompt_toolkit import HTML diff --git a/examples/progress-bar/scrolling-task-name.py b/examples/progress-bar/scrolling-task-name.py index bce155f..5531ace 100755 --- a/examples/progress-bar/scrolling-task-name.py +++ b/examples/progress-bar/scrolling-task-name.py @@ -3,6 +3,7 @@ A very simple progress bar where the name of the task scrolls, because it's too long. iterator. """ + import time from prompt_toolkit.shortcuts import ProgressBar diff --git a/examples/progress-bar/simple-progress-bar.py b/examples/progress-bar/simple-progress-bar.py index c8776e5..672e103 100755 --- a/examples/progress-bar/simple-progress-bar.py +++ b/examples/progress-bar/simple-progress-bar.py @@ -3,6 +3,7 @@ A very simple progress bar which keep track of the progress as we consume an iterator. """ + import time from prompt_toolkit.shortcuts import ProgressBar diff --git a/examples/progress-bar/styled-1.py b/examples/progress-bar/styled-1.py index d972e55..1f395cf 100755 --- a/examples/progress-bar/styled-1.py +++ b/examples/progress-bar/styled-1.py @@ -3,6 +3,7 @@ A very simple progress bar which keep track of the progress as we consume an iterator. """ + import time from prompt_toolkit.shortcuts import ProgressBar diff --git a/examples/progress-bar/styled-2.py b/examples/progress-bar/styled-2.py index 15c57d4..f5979b9 100755 --- a/examples/progress-bar/styled-2.py +++ b/examples/progress-bar/styled-2.py @@ -3,6 +3,7 @@ A very simple progress bar which keep track of the progress as we consume an iterator. """ + import time from prompt_toolkit.formatted_text import HTML diff --git a/examples/progress-bar/styled-apt-get-install.py b/examples/progress-bar/styled-apt-get-install.py index bafe70b..50b6935 100755 --- a/examples/progress-bar/styled-apt-get-install.py +++ b/examples/progress-bar/styled-apt-get-install.py @@ -2,6 +2,7 @@ """ Styled just like an apt-get installation. """ + import time from prompt_toolkit.shortcuts import ProgressBar diff --git a/examples/progress-bar/styled-rainbow.py b/examples/progress-bar/styled-rainbow.py index b46e949..e14e2f0 100755 --- a/examples/progress-bar/styled-rainbow.py +++ b/examples/progress-bar/styled-rainbow.py @@ -2,6 +2,7 @@ """ A simple progress bar, visualized with rainbow colors (for fun). """ + import time from prompt_toolkit.output import ColorDepth diff --git a/examples/progress-bar/styled-tqdm-1.py b/examples/progress-bar/styled-tqdm-1.py index 9484ac0..a24f887 100755 --- a/examples/progress-bar/styled-tqdm-1.py +++ b/examples/progress-bar/styled-tqdm-1.py @@ -4,6 +4,7 @@ Styled similar to tqdm, another progress bar implementation in Python. See: https://github.com/noamraph/tqdm """ + import time from prompt_toolkit.shortcuts import ProgressBar diff --git a/examples/progress-bar/styled-tqdm-2.py b/examples/progress-bar/styled-tqdm-2.py index 0e66e90..bcdac67 100755 --- a/examples/progress-bar/styled-tqdm-2.py +++ b/examples/progress-bar/styled-tqdm-2.py @@ -4,6 +4,7 @@ Styled similar to tqdm, another progress bar implementation in Python. See: https://github.com/noamraph/tqdm """ + import time from prompt_toolkit.shortcuts import ProgressBar diff --git a/examples/progress-bar/two-tasks.py b/examples/progress-bar/two-tasks.py index c78604e..36bdf6a 100755 --- a/examples/progress-bar/two-tasks.py +++ b/examples/progress-bar/two-tasks.py @@ -2,6 +2,7 @@ """ Two progress bars that run in parallel. """ + import threading import time diff --git a/examples/progress-bar/unknown-length.py b/examples/progress-bar/unknown-length.py index e39ac39..5d2d06f 100755 --- a/examples/progress-bar/unknown-length.py +++ b/examples/progress-bar/unknown-length.py @@ -3,6 +3,7 @@ A very simple progress bar which keep track of the progress as we consume an iterator. """ + import time from prompt_toolkit.shortcuts import ProgressBar -- cgit v1.2.3