sw: Move bar_redraw variable where it belongs

This commit is contained in:
Markus Koch 2020-08-08 18:16:47 +02:00
parent 8fec7fbc8b
commit 91af51f51b

View File

@ -18,7 +18,6 @@ class display(object):
self.font_info = ImageFont.truetype('/usr/share/fonts/TTF/DejaVuSans.ttf', 10) self.font_info = ImageFont.truetype('/usr/share/fonts/TTF/DejaVuSans.ttf', 10)
self.img = Image.new('1', (self.width, self.height), color = not self.fg) self.img = Image.new('1', (self.width, self.height), color = not self.fg)
self.d = ImageDraw.Draw(self.img) self.d = ImageDraw.Draw(self.img)
self.bar_redraw = True
def render(self): def render(self):
print("render NYI") print("render NYI")
@ -39,6 +38,7 @@ class display_playback(display):
self.info = "" self.info = ""
self.syms = []; self.syms = [];
self.title_img = Image.new('1', (0, 0), color = not self.fg) self.title_img = Image.new('1', (0, 0), color = not self.fg)
self.bar_redraw = True
def update_text(self, title): def update_text(self, title):
self.title = title self.title = title