CEF Python is an open source project founded by Czarek Tomczak in 2012 to provide python bindings for the Chromium Embedded Framework
Questions tagged [cefpython]
82 questions
6
votes
1 answer
Cefpython app with html/js files in local filesystem
I'm trying to make a hybrid python-js application with cefpython.
I would like to have:
JS and HTML files local to the cef python app (e.g. in './html', './js', etc)
Load one of the HTML files as the initial page
Avoid any CORS issues with files…

Elliot Woods
- 834
- 11
- 20
5
votes
1 answer
Incorporating CEFPython into Kivy App on Mac -- keyboard input doesn't work
I'm attempting to run the simple Kivy application located here on OSX.
At first, CEF failed during initialization. The output was:
igskcicgltgm047:Kivy_Test dslosky$ kivy cefTest4.py
[INFO ] [Logger ] Record log in…

dslosky
- 867
- 8
- 18
4
votes
1 answer
CEF Python ExecuteJavascript will not set value of a input element
When I try browser.ExecuteJavascript("alert('ExecuteJavaScript works!');") it works fine (pops up a alert when the browser is created). When I try browser.ExecuteJavascript("document.getElementsByName('q')[0].value = 24;") nothing happens. So I know…

antfuentes87
- 849
- 3
- 17
- 34
3
votes
1 answer
How to call cef.CreateBrowserSync()
I'm attempting to use cefpython3 with tkinter and want to make it OOP. Right now I have 3 classes GUI which act as the controller (runs tk.Tk()) and controls what page is showing. Next is a MainPage class which holds all the pages parts; buttons,…

LukeDev
- 509
- 4
- 19
3
votes
1 answer
Why can't run both tkinter mainloop and cefpython3 messageloop?
I'm working at a project in Python3 in which i have both tkinter and a frame in tkinter with cef browser.
This is the code.
from tkinter import messagebox
#import threading
from cefpython3 import cefpython as cef
import platform
import sys
from…

Zeno Dalla Valle
- 957
- 5
- 16
3
votes
1 answer
how to add MP4(proprietary codecs) support in cefpython
I want to add MP4 and MP3 support in Cefpython, I read many things on the internet that add "proprietary_codecs=1 ffmpeg_branding=Chrome" in your GYP_DEFINES" but I want to ask that is these changes are same for cefSharp, cefPython? but after change…

avi
- 117
- 1
- 2
- 11
3
votes
1 answer
pyinstaller doesn't bundle pyd and dll files with --onefile
I'm trying to bundle a cefpython1 application into a single exe with pyinstaller.
I have a working spec file which creates a distrubiton for the cefpython1 example, cefsimple:
# -*- mode: python -*-
def get_cefpython_path():
import cefpython1…

NagyI
- 5,907
- 8
- 55
- 83
2
votes
1 answer
How to use CEFPython to add a WebBrowser widget in a Tkinter window?
I want to display a WebBrowser inside my tkinter app. Per the example below:
##############
# label #
#————————————#
# webbrowser #
##############
Here is what I have…
2
votes
1 answer
Embedding cefpython inside Kivy screen
I am building a simple Kivy app with 2 screens. The first screen has a simple button which, when clicked, goes to the second screen and should open a particular website (e.g. google.com) in embedded browser. I am aware that Kivy does not natively…

Shoumik Das
- 441
- 5
- 16
2
votes
1 answer
How to stop html rendering twice in the same window on Hi-DPI screens using CEFPython?
I'm trying to get CEFPython running on my High DPI laptop screen. Currently, I call the following:
sys.excepthook = cef.ExceptHook # To shutdown all CEF processes on error
cef.Initialize()
cef.DpiAware.EnableHighDpiSupport()
…

Parth Doshi
- 21
- 2
2
votes
0 answers
Cefpython cx_freeze errors
After much trying ive finally found a way to compile my Cefpython code:
import json
import urllib.request
from cefpython3 import cefpython as cef
import platform
import sys
url = "https://google.com/"
def main():
check_versions()
…

marshmallow
- 33
- 1
- 8
2
votes
2 answers
Bundle CEFpython on PyInstaller with --onefile option
I have an app where i had two executables: A Flask-SocketIO-Server and CefPython browser. I bundled the two executables with PyInstaller. The Flask-Server with --onefile option and the cefpython with --onedir option, because i couldnt make it with…

Ricardo Goncalves
- 315
- 3
- 15
2
votes
2 answers
What am I doing wrong while trying to call JS in pythoncef?
Can someone tell me what I'm doing wrong while performing this JavaScript cefpython callback on line 118?
# Tutorial example. Doesn't depend on any third party GUI framework.
# Tested with CEF Python v56.2+
from cefpython3 import cefpython as…

C. Poe
- 21
- 1
2
votes
0 answers
Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported (Kivy Application)
I am building a Kivy application that makes use of the cefpython widget for kivy.
Upon execution of my program, whenever I add a Text Input widget into the view, my application crashes with the error : Gtk-ERROR **: GTK+ 2.x symbols detected. Using…

Mayank Badola
- 33
- 6
2
votes
0 answers
CX_Freeze - Error while loading shared object from library.zip: not a directory
I am bundling a graphical application with cx_freeze for Ubuntu 14, and we added a dependency on cefpython3. I installed the package from deb file, and the software runs fine from command line (python (name-of-program).pyw).
I made sure the package…

Francesco Dondi
- 1,064
- 9
- 17