def _checkDependencies(self): missing_deps = initial_checks() if missing_deps: message, detail = missing_deps dialog = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_OK) dialog.set_icon_name("pitivi") dialog.set_markup("<b>"+message+"</b>") dialog.format_secondary_text(detail) dialog.run() return False return True
def _checkDependencies(self): missing_deps = initial_checks() if missing_deps: message, detail = missing_deps dialog = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_OK) dialog.set_icon_name("pitivi") dialog.set_markup("<b>" + message + "</b>") dialog.format_secondary_text(detail) dialog.run() return False return True
def __init__(self, debug=False): Pitivi.__init__(self) self.mainloop = gobject.MainLoop() self.actioner = None self.gui = None # Check the dependencies. missing_deps = initial_checks() if missing_deps: message, detail = missing_deps self._showStartupError(message, detail) sys.exit(2) if debug: sys.excepthook = self._excepthook
from gi.repository import GObject # This call has to be made before any "import Gst" call! GObject.threads_init() from pitivi.check import initial_checks missing_deps = initial_checks() if missing_deps: message, detail = missing_deps raise Exception("%s\n%s" % (message, detail))
from pitivi.check import initial_checks missing_deps = initial_checks() if missing_deps: message, detail = missing_deps raise Exception("%s\n%s" % (message, detail))