[Tutor] how to bind a event to a application in tkinter

Alan Gauld alan.gauld at btinternet.com
Sat Jan 19 22:27:24 CET 2008

"brindly sujith" <brindly at gmail.com> wrote

> how to bind a event to a application
> consider i m opening  openoffice using
> os.system("openoffice")...
> i want to bind a event on openoffice...

Sorry, I'm still not clear what you want to do, 
can you be more specific?

Also which OS?

Are you running OpenOdffice and want to catch an event 
in OO and send it to your Python program?

Or are you running a python program and want to notify 
OO of some event in your program?

Running OO from os.system will make the task much 
harder whichever one you mean, consider using the 
sub-process module instead.

Alan G.

More information about the Tutor mailing list