Пример #1
0
    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
Пример #2
0
    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
Пример #3
0
    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
Пример #4
0
    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
Пример #5
0
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))
Пример #6
0
from pitivi.check import initial_checks


missing_deps = initial_checks()
if missing_deps:
    message, detail = missing_deps
    raise Exception("%s\n%s" % (message, detail))