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()
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()
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()
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()
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()
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()