You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qubes-installer-qubes-os/firstboot/functions.py

27 lines
448 B

import gtk
import os
def loadPixbuf(fn):
return gtk.gdk.pixbuf_new_from_file(fn)
def loadToImage(fn):
pix = loadPixbuf(fn)
pixWidget = gtk.Image()
pixWidget.set_from_pixbuf(pix)
return pixWidget
def start_process(path, args = None):
if args == None:
args = [path]
else:
args = [path, args]
child = os.fork()
if not child:
os.execvp(path, args)
os._exit(1)
return child