Fix pylint issues
This commit is contained in:
parent
e94ba7e31f
commit
0cb30f6996
2 changed files with 4 additions and 4 deletions
|
|
@ -17,8 +17,8 @@ from eventbutton import EventButton
|
|||
import supervisor
|
||||
import terminalio
|
||||
import usb.core
|
||||
from gamelogic import GameLogic, BLANK, INFO_BAR_HEIGHT, DIFFICULTIES
|
||||
from menu import Menu, SubMenu
|
||||
from .gamelogic import GameLogic, BLANK, INFO_BAR_HEIGHT, DIFFICULTIES
|
||||
from .menu import Menu, SubMenu
|
||||
|
||||
# pylint: disable=ungrouped-imports
|
||||
if hasattr(supervisor.runtime, "display") and supervisor.runtime.display is not None:
|
||||
|
|
@ -199,7 +199,6 @@ def set_difficulty(diff):
|
|||
reset()
|
||||
|
||||
def hide_group(group):
|
||||
print("Hiding")
|
||||
group.hidden = True
|
||||
|
||||
for i, difficulty in enumerate(DIFFICULTIES):
|
||||
|
|
|
|||
|
|
@ -45,7 +45,8 @@ class SubMenu(Group):
|
|||
)
|
||||
self._render()
|
||||
|
||||
def _create_button(self, callback, label, width, x, y=0, border=True):
|
||||
@staticmethod
|
||||
def _create_button(callback, label, width, x, y=0, border=True):
|
||||
if border:
|
||||
outline_color = 0x000000
|
||||
selected_outline = 0x333333
|
||||
|
|
|
|||
Loading…
Reference in a new issue