kivy-garden / garden.cefpython

CEFPython Kivy widget

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CEF widget

This is a widget that embed https://code.google.com/p/cefpython into a Kivy widget. Works currently on Linux and Windows 64bit with python 2.7.

This project shouldn't considered stable. There are major things (ex. popups) which aren't implemented or causing proplems. Tested on Ubuntu 12.04 with the follwoing debian packages installed: libnss3-1d libnspr4-0d

There's another project which wraps cefpython into kivy but isn't installable in the garden way, which may be further developed: https://github.com/rentouch/cefkivy

Example

from kivy.garden.cefpython import CefBrowser, cefpython
from kivy.app import App

class CefBrowserApp(App):
    def build(self):
        return CefBrowser(start_url='http://kivy.org')

CefBrowserApp().run()

cefpython.Shutdown()

Hints

Don't use browser.Navigate() to chang the url. Use the function change_url(url) instead. Read in 'init.py' at function change_url() why.

About

CEFPython Kivy widget

License:MIT License


Languages

Language:JavaScript 91.9%Language:Python 6.8%Language:CSS 1.3%