Convert "selected_tuple" into local function variable

This commit is contained in:
Iggy 2024-08-22 23:26:33 -03:00
parent 0fbff1b81b
commit cee1984f4d

View file

@ -20,13 +20,13 @@ define tuples_index = [
("Chapters 7 to 11", chapter_tuple_2)
]
default selected_tuple = None
init python:
def select_chapter():
global selected_tuple, current_chapter, is_end_reached
global current_chapter, is_end_reached
selected_tuple = ()
while True:
selected_tuple = display_tuple_menu(tuples_index)