Hi all,
    I'd like to launch an external editor within my app.
I use a like this:
1) Get the text from Textview and save it on a file
2) Launch with "os.system" the command "editor filename"
3) Read the file and put the text on the Textview.

This code works but I have some little problems:
- "os.system" is not fully multiplatform, it works on *nix and windows.
   I'd like to use a fully multiplatform launcher.
- On *nix if I launch a graphic editor like gvim the os.system does not 
  wait the editor close. So even if I write something in the external
  editor I loose it because the app. is already at point 3. I'd need
  to block the execution until the editor is closed. I saw that Pan uses
  a function named "g_spawn_async" for this job, but I can't figure were
  it is defined. Is it a GTK function?

-- 

 |\ |       |HomePage   : http://nem01.altervista.org
 | \|emesis |XPN (my nr): http://xpn.altervista.org
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to