Hi all,
I'm trying add support for external editors to a mail client. VIM is what I
really want to use, but my strategy is more general than that.
The plan is to use the zvt widget, and run a text-mode editor (vi,emacs, etc.)
inside of that. I'd like to set it up so that the mail client can cause the
editor to save to file. This can be achieved in C by using the
zvt_term_writechild function to send the appropriate keystrokes to the editor
to cause it to save the file. However, this function hasn't (yet) been
wrapped for use from python (any reason why not?).
So I've been trying to figure out how to simulate the keystrokes at the Gtk
level... again I could do it in C, but I haven't been able to figure it out in
Python. Presumably I'd need to create a GdkEvent and then call
GtkWidget.event() method to pass the event to the zvt instance. However,
after looking at the pygtk source it looks like the code to create a GdkEvent
is only used to pass GdkEvents _to_ python from C, not the other way around.
Any suggestions?
Please cc: me, as I'm not subscribed to the list.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk