예제 #1
0
    def __init__(self,
                 name="MyLensApp",
                 width=640,
                 height=480,
                 inspector=False,
                 start_maximized=False,
                 *args,
                 **kwargs):
        View.__init__(self,
                      name=name,
                      width=width,
                      height=height,
                      *args,
                      **kwargs)

        self._app = QApplication([])

        # prepare Qt DBus mainloop
        try:
            DBusQtMainLoop(set_as_default=True)

        except NameError:
            # TODO: validate DBus failed to import (windows)
            pass

        self._app_loaded = False

        self._manager = ThreadManagerQt5(app=self._app)

        self._inspector = inspector
        self._start_maximized = start_maximized
        self._build_app()
예제 #2
0
    def __init__(self,
                 name="MyLensApp",
                 width=640,
                 height=480,
                 inspector=False,
                 start_maximized=False,
                 *args,
                 **kwargs):
        View.__init__(self,
                      name=name,
                      width=width,
                      height=height,
                      *args,
                      **kwargs)
        # prepare Qt DBus mainloop
        DBusQtMainLoop(set_as_default=True)
        self._app = QApplication([])

        self._app_loaded = False

        self._manager = ThreadManagerQt4(app=self._app)

        self._inspector = inspector
        self._start_maximized = start_maximized
        self._build_app()
예제 #3
0
    def __init__(self,
                 name="MyLensApp",
                 width=640,
                 height=480,
                 inspector=False,
                 start_maximized=False,
                 *args,
                 **kwargs):
        View.__init__(self,
                      name=name,
                      width=width,
                      height=height,
                      *args,
                      **kwargs)
        # prepare Gtk DBus mainloop
        DBusGMainLoop(set_as_default=True)

        self._app_loaded = False

        self._logger = logging.getLogger('Lens.ViewGtk')
        self._manager = ThreadManagerGtk()

        self._inspector = inspector
        self._start_maximized = start_maximized
        self._window_state = {}
        self._build_app()
예제 #4
0
  def __init__(self, name="MyLensApp", width=640, height=480, inspector=False, *args, **kwargs):
    View.__init__(self, name=name, width=width, height=height, *args, **kwargs)
    # prepare Gtk dbus mainloop
    DBusGMainLoop(set_as_default=True)

    self._app_loaded = False

    self._logger = logging.getLogger('Lens.ViewGtk2')
    self._manager = ThreadManagerGtk2()
    self._uri_lens_base = None

    self._inspector = inspector
    self._build_app()
예제 #5
0
    def __init__(self, name="MyLensApp", width=640, height=480, inspector=False, start_maximized=False, *args, **kwargs):
        View.__init__(self, name=name, width=width,height=height, *args, **kwargs)
        # prepare Qt dbus mainloop
        DBusQtMainLoop(set_as_default=True)
        self._app = QApplication([])

        self._app_loaded = False

        self._manager = ThreadManagerQt4(app=self._app)

        self._inspector = inspector
        self._start_maximized = start_maximized
        self._build_app()
예제 #6
0
파일: appgtk.py 프로젝트: Antergos/kp-lens
  def __init__(self, name="MyLensApp", width=640, height=480, inspector=False, start_maximized=False, *args, **kwargs):
    View.__init__(self, name=name, width=width, height=height, *args, **kwargs)
    # prepare Gtk DBus mainloop
    DBusGMainLoop(set_as_default=True)

    self._app_loaded = False

    self._logger = logging.getLogger('Lens.ViewGtk')
    self._manager = ThreadManagerGtk()

    self._inspector = inspector
    self._start_maximized = start_maximized
    self._window_state = {}
    self._build_app()
예제 #7
0
    def __init__(self, name="MyLensApp", width=640, height=480, inspector=False, start_maximized=False, *args, **kwargs):
        View.__init__(self, name=name, width=width,height=height, *args, **kwargs)

        self._app = QApplication([])

        # prepare Qt DBus mainloop
        try:
            DBusQtMainLoop(set_as_default=True)

        except NameError:
            # TODO: validate DBus failed to import (windows)
            pass

        self._app_loaded = False

        self._manager = ThreadManagerQt5(app=self._app)

        self._inspector = inspector
        self._start_maximized = start_maximized
        self._build_app()
예제 #8
0
    def __init__(self,
                 name="MyLensApp",
                 width=640,
                 height=480,
                 inspector=False,
                 *args,
                 **kwargs):
        View.__init__(self,
                      name=name,
                      width=width,
                      height=height,
                      *args,
                      **kwargs)
        # prepare Gtk dbus mainloop
        DBusGMainLoop(set_as_default=True)

        self._app_loaded = False

        self._logger = logging.getLogger('Lens.ViewGtk2')
        self._manager = ThreadManagerGtk2()
        self._uri_lens_base = None

        self._inspector = inspector
        self._build_app()