Commit 837ffb61 authored by Fjen Undso's avatar Fjen Undso
Browse files

gui/progressbar: remove unused methods

parent f43bf0ba
......@@ -4,16 +4,13 @@ from .abstracts.drawable import Drawable
class ProgressBar(Drawable):
def __init__(self, *, window, row=0, col=0, width=0, height=0, text='',
max_value=100, attr=curses.A_STANDOUT, prev_key=None,
next_key=None):
max_value=100, attr=curses.A_STANDOUT):
self.width = width
self.height = height
self.max = max_value
self.value = 0
self.attr = attr
self.text = text
self.prev_key = prev_key
self.next_key = next_key
Drawable.__init__(self, window=window.subwin(height, width, row, col), row=row, col=col)
def draw(self):
......@@ -38,14 +35,5 @@ class ProgressBar(Drawable):
self.value = max(self.value, 0)
self.draw()
def incr(self):
self.set(self.value + 1)
def decr(self):
self.set(self.value - 1)
def send_key(self, key):
if key == self.prev_key:
self.decr()
elif key == self.next_key:
self.incr()
pass
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment