Skip to content

Instantly share code, notes, and snippets.

View Roshan-R's full-sized avatar

Roshan R Chandar Roshan-R

View GitHub Profile
@fabrixxm
fabrixxm / gasyncspawn.py
Last active May 17, 2023 07:30
Run external process asynchronously with Python, GLib. Get stdout and stderr via signals.
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
#https://developer.gnome.org/pygobject/2.28/
#http://www.pygtk.org/articles/subclassing-gobject/sub-classing-gobject-in-python.htm#d0e570
from gi.repository import GObject
from gi.repository import GLib
class GAsyncSpawn(GObject.GObject):