__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.148: ~ $
# Installing Qt and OpenGL on the 64-bit Lite OS, and trying to run
# a remote preview window, causes an error here (the 32-bit Lite OS is OK).
# It may be something to do with more recent versions of python3-opengl?
# Anyway, if we carry on regardless at least the non-OpenGL preview works,
# which is in any case what is required for remote preview windows.
from logging import getLogger

from .q_picamera2 import _get_qpicamera2
from .qt_compatibility import _QT_BINDING

_log = getLogger(__name__)

try:
    from .q_gl_picamera2 import _get_qglpicamera2
except Exception:
    _log.warning("OpenGL will not be available")


# Lazy load QPicamera2 widget classes as will likely only use one or two within a given application
def __getattr__(name: str):
    # Standard Qt widgets
    if name == 'QPicamera2':
        return _get_qpicamera2(_QT_BINDING.PyQt5)
    elif name == 'Q6Picamera2':
        return _get_qpicamera2(_QT_BINDING.PyQt6)
    elif name == 'QSide2Picamera2':
        return _get_qpicamera2(_QT_BINDING.PySide2)
    elif name == 'QSide6Picamera2':
        return _get_qpicamera2(_QT_BINDING.PySide6)
    # OpenGL accelerated Qt widgets
    elif name == 'QGlPicamera2':
        return _get_qglpicamera2(_QT_BINDING.PyQt5)
    elif name == 'QGl6Picamera2':
        return _get_qglpicamera2(_QT_BINDING.PyQt6)
    elif name == 'QGlSide2Picamera2':
        return _get_qglpicamera2(_QT_BINDING.PySide2)
    elif name == 'QGlSide6Picamera2':
        return _get_qglpicamera2(_QT_BINDING.PySide6)
    raise AttributeError(f"qt has no attribute '{name}'")

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
__init__.py File 122 B 0644
drm_preview.py File 10.1 KB 0644
gl_helpers.py File 2.06 KB 0644
null_preview.py File 2.81 KB 0644
q_gl_picamera2.py File 19.05 KB 0644
q_picamera2.py File 9.59 KB 0644
qt.py File 1.53 KB 0644
qt_compatibility.py File 1.37 KB 0644
qt_previews.py File 5.08 KB 0644
Filemanager