Name
invoke
Synopsis
b
.invoke( )
Calls without arguments the callable object that is
b
’s
command
option, just like
b
.cget('command')( )
.
This can be handy when, within some other action, you want the
program to act just as if the button had been clicked.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.