From 49cd7dd22447d80b2aa4328ff5021145ee84fc22 Mon Sep 17 00:00:00 2001 From: sodoku <philip.d.stewart@gmail.com> Date: Fri, 4 Oct 2019 20:43:36 +0200 Subject: [PATCH] Code style --- pycardium/modules/py/simple_menu.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pycardium/modules/py/simple_menu.py b/pycardium/modules/py/simple_menu.py index 4543e3b1f..7a193c686 100644 --- a/pycardium/modules/py/simple_menu.py +++ b/pycardium/modules/py/simple_menu.py @@ -179,8 +179,12 @@ class Menu: self.idx = 0 self.select_time = utime.time_ms() self.disp = display.open() - self.button_scroll_up = buttons.TOP_RIGHT if self.right_buttons_scroll else buttons.BOTTOM_LEFT - self.button_select = buttons.BOTTOM_LEFT if self.right_buttons_scroll else buttons.TOP_RIGHT + self.button_scroll_up = ( + buttons.TOP_RIGHT if self.right_buttons_scroll else buttons.BOTTOM_LEFT + ) + self.button_select = ( + buttons.BOTTOM_LEFT if self.right_buttons_scroll else buttons.TOP_RIGHT + ) def entry2name(self, value): """ -- GitLab