Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Fjen Undso
nchl
Commits
f290a135
Commit
f290a135
authored
Aug 27, 2019
by
Fjen Undso
Browse files
thicker progressbars
parent
fc16bdcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
nchl.py
View file @
f290a135
...
...
@@ -74,8 +74,8 @@ class NCHL:
ProgressBar
(
window
=
self
.
screen
,
row
=
1
,
col
=
scr_center_x
-
1
4
+
i
*
8
,
width
=
5
,
col
=
scr_center_x
-
1
9
+
i
*
10
,
width
=
9
,
height
=
12
,
value
=
255
,
max_value
=
255
,
...
...
@@ -87,8 +87,8 @@ class NCHL:
self
.
numbers
=
[
NumberRange
(
window
=
self
.
screen
,
col
=
scr_center_x
-
1
4
+
i
*
8
,
row
=
1
3
,
col
=
scr_center_x
-
1
7
+
i
*
10
,
row
=
1
2
,
value
=
255
,
prev_key
=
"KEY_DOWN"
,
next_key
=
"KEY_UP"
,
...
...
@@ -105,7 +105,7 @@ class NCHL:
CheckBox
(
window
=
self
.
screen
,
col
=
scr_center_x
-
21
+
i
//
2
*
11
,
row
=
1
5
,
row
=
1
4
,
toggle_key
=
" "
,
toggle_key_unfocused
=
str
(
i
),
text
=
"ESP({})"
.
format
(
i
),
...
...
@@ -117,7 +117,7 @@ class NCHL:
CheckBox
(
window
=
self
.
screen
,
col
=
scr_center_x
-
21
+
(
i
-
1
)
//
2
*
11
,
row
=
1
6
,
row
=
1
5
,
toggle_key
=
" "
,
toggle_key_unfocused
=
str
(
i
),
text
=
"ESP({})"
.
format
(
i
),
...
...
@@ -135,12 +135,12 @@ class NCHL:
self
.
continous
=
CheckBox
(
window
=
self
.
screen
,
col
=
scr_center_x
-
12
,
row
=
1
8
,
row
=
1
7
,
toggle_key_unfocused
=
"C"
,
text
=
"(C)ontinuous updating"
,
)
self
.
screen
.
addstr
(
1
9
,
1
8
,
scr_center_x
-
20
,
"(S)end | all (O)ff | all (W)hite | (Q)uit"
,
curses
.
color_pair
(
curses
.
COLOR_YELLOW
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment