Questions tagged [cefpython]

CEF Python is an open source project founded by Czarek Tomczak in 2012 to provide python bindings for the Chromium Embedded Framework

82 questions
1
vote
0 answers

Thread slows down when running cefpython MessageLoop()

I made a simple offscreen renderer with cefpython. I use cefpython.MessageLoop(), and I have a separate thread to do something every seconds: [... cefpython initialization ...] startTime = time.time() def main_loop(): print time.time() -…
arthur.sw
  • 11,052
  • 9
  • 47
  • 104
1
vote
1 answer

cefPython Type Error

I am trying to use cefPython and the OnBeforeResourceLoad method. I have implemented it as follows: def OnBeforeResourceLoad(self, browser, request, redirectURL, streamReader, response, loadFlags): # if request.GetUrl() ==…
Paul
  • 1,375
  • 4
  • 16
  • 29
1
vote
1 answer

Define Custom Scheme Handler for Chromium Embedded Framework using CEFPython

How can one defines a custom scheme handler for CEF in Python using CEFPython? I've found this thread that explains how to define a CefSchemeHandlerFactory and CefSchemeHandler in C++. But I can't find out how should I employ CefBase as a base type…
Kaveh Shahbazian
  • 13,088
  • 13
  • 80
  • 139
0
votes
0 answers

compiled vue files served locally in a cef python browser not rendering some images

I've got an application that uses Cefpython to serve a local vue application however the browser is not resolving all image paths correctly. The html, js and some images are resolved to an absolute path however others are resolved to a shortened…
mitch
  • 37
  • 6
0
votes
1 answer

PyInstaller app with cefpython throws ERROR:icu_util.cc(133)] Invalid file descriptor to ICU data receiv

I've been developing a Tkinter GUI application with CEFPython for browser integration. My application runs smoothly when executed as a Python script. However, I've been running into issues when trying to compile it into a standalone executable using…
Cassano
  • 253
  • 5
  • 36
0
votes
0 answers

ImportError: dlopen(cefpython_py37.so, 0x0002): symbol not found in flat namespace (__Z17CefSetOSModalLoopb)

I'm trying to use the llcc01's fork with Chromium 108 support ( from here https://github.com/llcc01/cefpython ) to make a build for Windows and a build for MacOS (some changes needed to let it build). I was able to make a build on Windows and I have…
shakraw
  • 39
  • 7
0
votes
1 answer

How to expose python functions in javascript with cefpython with an external HTML file

I’m trying to write an HTML GUI for a project with cefpython. I’ve been able to create a working GUI in HTML, but I’d like to be able to expose python functions in javascript. There’s a tutorial on how to do this in the cefpython GitHub repo, but it…
0
votes
0 answers

Python GUI with background disappearing when mouse hoover

I have a weird bug on my python3.7 application and I don't have a clue on how to solve it. Application description: Executable bundled with Pyinstaller which consists in a Flask server and a CEFPython browser that renders a react build. Relevant…
0
votes
1 answer

CEF - Entry Button in Tkinter is inactive after the browser has been opened

Below is the code I am trying to run. I want to open a browser and still be able to use the entry box. I am using threading and the browser opens up or loads correctly. However the entry box becomes inactive. How can be able to use the entry box…
0
votes
0 answers

Stack with Cefpython3 programe

The program works very well while in my pycharm editor but if i convert the python file to apk using buildozer, the app refuses to open on mobile phone. this is the error it throws enter image description here
0
votes
0 answers

How to Resize browserframe in cefpython

How can i resize the browserframe in cefpython? I have a notebook tab with scroll but when i scroll leff/right and up/down the browserframe dont resize. How can i do this, is there a way to resize the browserframe in order to implement in the scroll…
mrpy
  • 49
  • 6
0
votes
1 answer

CEFPython unable to embed inside pyqt5 application

I am new to Cefpython and PyQt5 both. I have tried to follow the tutorial in the cefpython repository. I was trying to embed cefpython inside a pyqt application and haven't achieved any success, what's wrong here? import sys from PyQt5.QtCore…
Sujal Singh
  • 532
  • 1
  • 5
  • 14
0
votes
1 answer

The proxy you are connecting is not in your list error in GetAuthCredentials callback function

I get white screen on the chromium instance, while trying to make callback function to authenticate my proxies. Here is my code for that: def main(): check_versions() sys.excepthook = cef.ExceptHook # To shutdown all CEF processes on…
hen
  • 65
  • 1
  • 7
0
votes
1 answer

how to move cefpython embedded browser inside a wxPython sizer

Im trying to add a button and move the browser panel to the right. i want the button to the left but the button is ontop of the map that i have displayed. here is the code http://pastie.org/p/4y8FtkR1z2mbZO3WHuSt5L self.browser_panel =…
0
votes
1 answer

How to disable same origin policy in cefpython?

I want to disable same-origin policy in cefpython while using pywebview. I tried below code according to this page: from webview.platforms.cef import command_line_switches command_line_switches.update({ 'disable_web_security': 'True' }) # if i…
Amin Pial
  • 383
  • 6
  • 12