使用 bind 指派的回调的第一个变量总是一个对产生事件的部件的引用。
The first argument to a callback assigned using bind is always a reference to the widget that generated the event.
程序的最后一行调用mainloop语句,这个语句的作用是开始监听用户事件,并且把它们分派给合适的回调。所有的事件都已被对应的能够产生事件的部件注册。
The last line calls MainLoop, which starts listening for user events and dispatches them to the appropriate callbacks, which have been registered with each widget that can generate events.
在使用Ajax调用服务器时,产生的响应是通过调用一个回调函数返回的。
When you call the server using Ajax, the resulting response calls back through a callback function.
应用推荐