Tag: Programming

Passing functions as arguments with arguments

0 commentsA-LevelA-LevelProgramming

I appreciate this is a difficult one to describe, but things like Tkinter, PyGame or anything after a callback (calling another function when something happens) can throw up complications when you want to pass an argument. Consider the following line: threading.Timer(5, bar).start() That’s fairly straight forward that it’s calling the function bar after 5 seconds. ….  Read More