You have to change the lambda to something like this:
recent_list.add_command(label=name, command=lambda i = index: self.__open_recent(i))
This passes the correct index to the function.
1.4m articles
1.4m replys
5 comments
57.0k users