skilleter-modules 0.0.6__py3-none-any.whl → 0.0.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- skilleter_modules/popup.py +4 -4
- {skilleter_modules-0.0.6.dist-info → skilleter_modules-0.0.7.dist-info}/METADATA +1 -1
- {skilleter_modules-0.0.6.dist-info → skilleter_modules-0.0.7.dist-info}/RECORD +6 -6
- {skilleter_modules-0.0.6.dist-info → skilleter_modules-0.0.7.dist-info}/WHEEL +0 -0
- {skilleter_modules-0.0.6.dist-info → skilleter_modules-0.0.7.dist-info}/licenses/LICENSE +0 -0
- {skilleter_modules-0.0.6.dist-info → skilleter_modules-0.0.7.dist-info}/top_level.txt +0 -0
skilleter_modules/popup.py
CHANGED
|
@@ -21,7 +21,7 @@ import curses.panel
|
|
|
21
21
|
class PopUp():
|
|
22
22
|
""" Class to enable popup windows to be used via with statements """
|
|
23
23
|
|
|
24
|
-
def __init__(self, screen, msg, colour, waitkey=False, sleep=
|
|
24
|
+
def __init__(self, screen, msg, colour, waitkey=False, sleep=1, centre=True, refresh=True):
|
|
25
25
|
""" Initialisation - just save the popup parameters """
|
|
26
26
|
|
|
27
27
|
self.panel = None
|
|
@@ -30,7 +30,7 @@ class PopUp():
|
|
|
30
30
|
self.centre = centre
|
|
31
31
|
self.colour = curses.color_pair(colour)
|
|
32
32
|
self.refresh = refresh
|
|
33
|
-
self.sleep =
|
|
33
|
+
self.sleep = 0 if waitkey else sleep
|
|
34
34
|
self.waitkey = waitkey
|
|
35
35
|
self.start_time = 0
|
|
36
36
|
|
|
@@ -81,8 +81,8 @@ class PopUp():
|
|
|
81
81
|
if self.sleep:
|
|
82
82
|
elapsed = time.monotonic() - self.start_time
|
|
83
83
|
|
|
84
|
-
if elapsed <
|
|
85
|
-
time.sleep(
|
|
84
|
+
if elapsed < self.sleep:
|
|
85
|
+
time.sleep(self.sleep - elapsed)
|
|
86
86
|
|
|
87
87
|
del self.panel
|
|
88
88
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: skilleter_modules
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.7
|
|
4
4
|
Summary: Modules used by my various Python projects (and hopefully useful to other people)
|
|
5
5
|
Author-email: John Skilleter <john@skilleter.org.uk>
|
|
6
6
|
Project-URL: Home, https://skilleter.org.uk
|
|
@@ -9,12 +9,12 @@ skilleter_modules/files.py,sha256=HLrNcUdnpWO-1GEZiDochpVdDKto4G1ukmk4Mszdy7o,47
|
|
|
9
9
|
skilleter_modules/git.py,sha256=1rXwhvxHQuIMFqBTRxc1OYOgfcpcIGiWRl1HWRU6x4k,43300
|
|
10
10
|
skilleter_modules/gitlab.py,sha256=uXAF918xnPk6qQyiwPQDbMZfqtJzhiRqDS7yEtJEIAg,6079
|
|
11
11
|
skilleter_modules/path.py,sha256=sk_v9wlRTqZybyl6muAM5yL93ni2LTM0pPj1tyqcaHs,4886
|
|
12
|
-
skilleter_modules/popup.py,sha256=
|
|
12
|
+
skilleter_modules/popup.py,sha256=FPp4O759UiogTAYefmrfV6vW0LcG6XEbGqePtKpZNMo,2579
|
|
13
13
|
skilleter_modules/run.py,sha256=mXzf1kJxNIKSYVT6khJ8s5RiA2cVqkoOFk0P6QPIBY0,10631
|
|
14
14
|
skilleter_modules/tidy.py,sha256=AN_3CRHd8HyWeXlNtd0gZyaA0UJfO4k3IvC5fszeUtk,5972
|
|
15
15
|
skilleter_modules/venv_template.py,sha256=ZfUvi8qFNGrk7J030Zy57xjwMtfIArJyqa-MqafyjVk,1016
|
|
16
|
-
skilleter_modules-0.0.
|
|
17
|
-
skilleter_modules-0.0.
|
|
18
|
-
skilleter_modules-0.0.
|
|
19
|
-
skilleter_modules-0.0.
|
|
20
|
-
skilleter_modules-0.0.
|
|
16
|
+
skilleter_modules-0.0.7.dist-info/licenses/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
|
|
17
|
+
skilleter_modules-0.0.7.dist-info/METADATA,sha256=czar0fCT9eGUAJXF_NTxuSHgynvNGO2BlYFrvwKCKPM,1824
|
|
18
|
+
skilleter_modules-0.0.7.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
19
|
+
skilleter_modules-0.0.7.dist-info/top_level.txt,sha256=DMa0AkGOjoDHiHDG6Nw1jtdUylaMm5WkF6uODT9yxJc,18
|
|
20
|
+
skilleter_modules-0.0.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|