Skip to content

Commit 0cb30f6

Browse files
committed
Fix pylint issues
1 parent e94ba7e commit 0cb30f6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Metro/Metro_RP2350_Minesweeper/code.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
import supervisor
1818
import terminalio
1919
import usb.core
20-
from gamelogic import GameLogic, BLANK, INFO_BAR_HEIGHT, DIFFICULTIES
21-
from menu import Menu, SubMenu
20+
from .gamelogic import GameLogic, BLANK, INFO_BAR_HEIGHT, DIFFICULTIES
21+
from .menu import Menu, SubMenu
2222

2323
# pylint: disable=ungrouped-imports
2424
if hasattr(supervisor.runtime, "display") and supervisor.runtime.display is not None:
@@ -199,7 +199,6 @@ def set_difficulty(diff):
199199
reset()
200200

201201
def hide_group(group):
202-
print("Hiding")
203202
group.hidden = True
204203

205204
for i, difficulty in enumerate(DIFFICULTIES):

Metro/Metro_RP2350_Minesweeper/menu.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def add_item(self, function, label):
4545
)
4646
self._render()
4747

48-
def _create_button(self, callback, label, width, x, y=0, border=True):
48+
@staticmethod
49+
def _create_button(callback, label, width, x, y=0, border=True):
4950
if border:
5051
outline_color = 0x000000
5152
selected_outline = 0x333333

0 commit comments

Comments
 (0)