I have two questions concerning python assuming the code below:
- Why it is not possible to pass a function with parentheses or parameters to add_command?
- What shall I do if my CreateWindow function has to take parameters?
Here's the line of code:
filemenu.add_command(label="update...", command=CreateWindow)