allestuetsmerweh / garden.cefpython Goto Github PK
View Code? Open in Web Editor NEWThis project forked from kivy-garden/garden.cefpython
CEFPython-based Kivy Web Browser Widget
License: MIT License
This project forked from kivy-garden/garden.cefpython
CEFPython-based Kivy Web Browser Widget
License: MIT License
After a while browsing, the application freezes. Not just the browser, also the kivy loop seems blocked. No error / crash.
I can't reproduce the issue yet but it happens from time to time in all applications where this garden.cefpython is used.
system keyboard (physical keyboard) input is being redirected to all focused elements
=> This may be an issue of kivy
command line switch touch-events http://peter.sh/experiments/chromium-command-line-switches/
when keyboard_mode is systemanddocked and the browser loses focus (another widget is focused), the browser won't un-focus the active HTML element
e.g. selection management does not work in presence of frames (blinking bubble)
-> I dont' know why dis wasn't merged? 2a97fb9
always_block_popups should return False
=> if not multi, when focusing a new widget, the old focus must go away
If CEFPython needs to be downloaded, the popup seems to stay on screen (but is covered by the new content)
Need to find out, how two kivy apps (one after the other) can be used in a correct manner!
When opening a popup, the CEFBrowser widget is given.
This cannot be integrated to a controlled browser created with kv lang.
When I try to run the examples, I'm getting the following error. Please help me out.
###########
RESTART: /home/susheel/Downloads/garden.cefpython-master/examples/tabbed.py
[ERROR ] Error while activating FileHandler logger
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/kivy/logger.py", line 225, in emit
self._configure()
File "/usr/lib/python2.7/dist-packages/kivy/logger.py", line 183, in _configure
FileHandler.fd = open(filename, 'w')
IOError: [Errno 13] Permission denied: u'/home/susheel/.kivy/logs/kivy_17-10-12_0.txt'
[INFO ] [Kivy ] v1.10.0
[INFO ] [Python ] v2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3.0 20170118]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO ] [OSC ] using for socket
[INFO ] [Window ] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] Backend used
[INFO ] [GL ] OpenGL version <4.5.0 NVIDIA 375.66>
[INFO ] [GL ] OpenGL vendor
[INFO ] [GL ] OpenGL renderer <GeForce 830M/PCIe/SSE2>
[INFO ] [GL ] OpenGL parsed version: 4, 5
[INFO ] [GL ] Shading version <4.50 NVIDIA>
[INFO ] [GL ] Texture max size <16384>
[INFO ] [GL ] Texture max units <32>
[INFO ] [Window ] auto add sdl2 input provider
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
Going to import /home/susheel/.kivy/garden/garden.cefpython/libs/linux64.py2/libcef.so
Traceback (most recent call last):
File "/home/susheel/Downloads/garden.cefpython-master/examples/tabbed.py", line 15, in
from kivy.garden.cefpython import CEFBrowser
ImportError: cannot import name CEFBrowser
If the start-url is about:blank, the back/forward functions won't work properly after loading the first real site.
=> Maybe bug in CEF / CEFPython
Reproduce:
If you change "about:blank" to a url in cefbrowser.py it will work.
CEFBrowser.certificate_error_handler;
TypeError: unbound method must be called with CEFBrowser instance as first argument (got int instance instead)
When Kivy is used with the SDL2 window provider, vkeyboard triggers on_textinput instead of on_key_down.
i don't know if this can be seen as a bug in kivy or not. The commit which introduced this behavior: kivy/kivy@35ca827
When using on_textinput we don't get the modifier keys?
Do we need the modifier keys?
of getBoundingClientRect observer
rather than calling buf.GetString
, which probably copies the whole buffer, call buf.GetIntPointer
.
Then create a Python MemoryView
with PyMemoryView_FromMemory
.
Finally, blit that MemoryView
into the kivy texture of the widget.
I have to be able to set enable-media-stream on cefpython.Initialize() to be able to use WebRTC features.
As an example I would:
switches = {"enable-media-stream": ""}
cefpython.Initialize(settings, switches)
when i run python3 setup.py install
ERROR:......MSG................................
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 34, in
install_requires=reqs,
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/command/install.py", line 117, in do_egg_install
cmd.run(show_deprecation=False)
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 408, in run
self.easy_install(spec, not self.no_deps)
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 650, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 697, in install_item
self.process_distribution(spec, dist, deps)
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 745, in process_distribution
[requirement], self.local_index, self.easy_install
File "/home/navid/.local/lib/python3.6/site-packages/pkg_resources/init.py", line 768, in resolve
replace_conflicting=replace_conflicting
File "/home/navid/.local/lib/python3.6/site-packages/pkg_resources/init.py", line 1051, in best_match
return self.obtain(req, installer)
File "/home/navid/.local/lib/python3.6/site-packages/pkg_resources/init.py", line 1063, in obtain
return installer(requirement)
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 669, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 695, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 890, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1162, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1146, in run_setup
run_setup(setup_script, args)
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/sandbox.py", line 257, in run_setup
raise
File "/usr/lib/python3.6/contextlib.py", line 99, in exit
self.gen.throw(type, value, traceback)
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/sandbox.py", line 193, in setup_context
yield
File "/usr/lib/python3.6/contextlib.py", line 99, in exit
self.gen.throw(type, value, traceback)
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/sandbox.py", line 164, in save_modules
saved_exc.resume()
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/sandbox.py", line 139, in resume
raise exc.with_traceback(self._tb)
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/sandbox.py", line 152, in save_modules
yield saved
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/sandbox.py", line 193, in setup_context
yield
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/sandbox.py", line 254, in run_setup
_execfile(setup_script, ns)
File "/home/navid/.local/lib/python3.6/site-packages/setuptools/sandbox.py", line 43, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-82024l6k/wsgiref-0.1.2/setup.py", line 5, in
# Written by Rentouch 2014 - http://www.rentouch.ch
File "/tmp/easy_install-82024l6k/wsgiref-0.1.2/ez_setup/init.py", line 170
print "Setuptools version",version,"or greater has been installed."
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Setuptools version",version,"or greater has been installed.")?
Available at: http://jegger.ch/datapool/app/test.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.