printit(sometext) is not a callable, it is the result of the call.
You can use:
lambda: printit(sometext)
Which is a callable to be called later which will probably do what you want.
printit(sometext) is not a callable, it is the result of the call.
You can use:
lambda: printit(sometext)
Which is a callable to be called later which will probably do what you want.