summaryrefslogtreecommitdiffstats
path: root/examples/progress-bar
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 04:45:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 04:45:14 +0000
commit5b43aaac61ac94abe722bc98ae58468618f2f512 (patch)
tree3d58c89faa23d194f83abb24ae1fd05067538fff /examples/progress-bar
parentAdding upstream version 3.0.43. (diff)
downloadprompt-toolkit-upstream.tar.xz
prompt-toolkit-upstream.zip
Adding upstream version 3.0.46.upstream/3.0.46upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'examples/progress-bar')
-rwxr-xr-xexamples/progress-bar/a-lot-of-parallel-tasks.py1
-rwxr-xr-xexamples/progress-bar/colored-title-and-label.py1
-rwxr-xr-xexamples/progress-bar/custom-key-bindings.py1
-rwxr-xr-xexamples/progress-bar/many-parallel-tasks.py1
-rwxr-xr-xexamples/progress-bar/nested-progress-bars.py1
-rwxr-xr-xexamples/progress-bar/scrolling-task-name.py1
-rwxr-xr-xexamples/progress-bar/simple-progress-bar.py1
-rwxr-xr-xexamples/progress-bar/styled-1.py1
-rwxr-xr-xexamples/progress-bar/styled-2.py1
-rwxr-xr-xexamples/progress-bar/styled-apt-get-install.py1
-rwxr-xr-xexamples/progress-bar/styled-rainbow.py1
-rwxr-xr-xexamples/progress-bar/styled-tqdm-1.py1
-rwxr-xr-xexamples/progress-bar/styled-tqdm-2.py1
-rwxr-xr-xexamples/progress-bar/two-tasks.py1
-rwxr-xr-xexamples/progress-bar/unknown-length.py1
15 files changed, 15 insertions, 0 deletions
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