Skip to content

CefView/PyQCefView

Repository files navigation

PyQCefView

PyQCefView is a simple Python binding for QCefView

Dependencies

This project depends on:

  • QCefView v1.2.0 You must build and provide the QCefView C++ library version 1.2.0. See: QCefView v1.2.0 Release

  • Chromium 126.0.6478.183 QCefView v1.2.0 is based on Chromium version 126.0.6478.183. See: Chromium source

Please ensure you use the correct versions of both QCefView and Chromium for compatibility with PyQCefView.

Build & install

General prerequisites

  • Python 3.8+ (or your project's target Python)
  • CMake, a C/C++ compiler toolchain (MSVC on Windows, Xcode on macOS, gcc/clang on Linux)
  • pip, virtualenv

Get the source

git clone --recursive https://github.com/skylerlee/PyQCefView.git

Build from source

pip install -r requirements-dev.txt
  • Build & install the PyQCefView (Python wrapper)
sip-install --cef-incdir=<QCEFVIEW_INCLUDE_DIR> --cef-libdir=<QCEFVIEW_OUTPUT_DIR> --cef-lib=QCefView [--verbose]
  • If you want to use the package in another project, you can build the wheel file
sip-wheel --cef-incdir=<QCEFVIEW_INCLUDE_DIR> --cef-libdir=<QCEFVIEW_OUTPUT_DIR> --cef-lib=QCefView [--verbose]

pip install qcefview-*.whl

Run the example

python examples/demo.py

It should load a webpage normally.

screenshot

License

The MIT License.

About

Python bindings for QCefView

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published