|
Re: Loading and reloading: msg#00199gnome.gtk+.python
Some strange characters appeared on my screen... Probably on Monday 11 of August 2003 00:48, Olivier Blin typed: > Hi > > I've started a wrapper of Glib's spawning utilities. > See > http://developer.gnome.org/doc/API/2.0/glib/glib-Spawning-Processes.html > > I've wrapped 2 functions so far : > > gboolean g_spawn_command_line_async (const gchar *command_line, > GError **error); > This one let you start a program from your pygtk code, it is roughly the > same as fork() followed by exec(). > (very easy to wrap ...) > > gboolean g_spawn_command_line_sync (const gchar *command_line, > gchar **standard_output, > gchar **standard_error, > gint *exit_status, > GError **error); > > This one is more interesting for you, it is basically the same as > popen() (no standard input though) > (quite simple to wrap) > > I can provide my code if anyone is interested, it may even be included > in pygtk FAQ, because popen() doesn't work as expected with > gnome-python. I'm writing once more about this. Could you say something more? I'm still having problems with handling program opened using popen2(), because it's blocking whole pygtk application. -- _________________________________________________________________________ Michal Chruszcz -=- Souls hacker -=- Seen at http://troll.one.pl/?gallery To follow the path: look to the master, follow the master, walk with the master, see through the master, become the master. _______________________________________________ pygtk mailing list pygtk@xxxxxxxxxx http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Exception dialog: 00199, Gustavo J A M Carneiro |
|---|---|
| Next by Date: | Re: Exception dialog: 00199, Gustavo J A M Carneiro |
| Previous by Thread: | Re: Loading and reloadingi: 00199, Christian Reis |
| Next by Thread: | threading and TextView: 00199, Felix Breuer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |