Generating an event in Tkinter

Fredrik Lundh fredrik at pythonware.com
Tue Aug 31 08:58:42 CEST 1999


nharlow at my-deja.com wrote:
> I want to generate a dummy event from within a program.  Then bind a
> callback to this event.
> 
> How do I do that?
> 
> In straight tk, it would be something like:
>  event generate parent_window <<foo>>

parent_window.event_generate("<<foo>>")

(additional options can be given as
keyword arguments)

</F>





More information about the Python-list mailing list