Skip to content

Commit b1ed7fb

Browse files
committed
rename redefined variable, fix pylint comment
1 parent 86f546a commit b1ed7fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Fruit_Jam/Fruit_Jam_Logic_Gates/workspace.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -727,9 +727,9 @@ def _init_grid(self):
727727
y=item_lbl.bounding_box[3] + 4,
728728
x=x_pos,
729729
)
730-
for i in range(len(item["tiles"])):
731-
item_icon[i] = item["tiles"][i]
732-
item_icon[i] = item["tiles"][i]
730+
for tile_index in range(len(item["tiles"])):
731+
item_icon[tile_index] = item["tiles"][tile_index]
732+
item_icon[tile_index] = item["tiles"][tile_index]
733733

734734
# put the entity label and icon in an AnchoredGroup
735735
item_group = AnchoredGroup()
@@ -794,9 +794,9 @@ def handle_mouse_click(self, screen_coords):
794794

795795
# set the created entity as the entity moving with mouse
796796
self._workspace.moving_entity = new_entity
797-
self._workspace._set_mouse_moving_tiles(
797+
self._workspace._set_mouse_moving_tiles( # pylint: disable=protected-access
798798
new_entity
799-
) # pylint: disable=protected-access
799+
)
800800
self._workspace.mouse_moving_tg.hidden = False
801801

802802
# close the ToolBox

0 commit comments

Comments
 (0)