Version 0.20 released

This forum is closed. Please ask CefPython questions here.

Moderator: Czarek

Version 0.20 released

Postby Czarek » Sun Jul 01, 2012 1:50 pm

CEF Python provides bindings for the Chromium Embedded Framework.
Project's website is here: http://code.google.com/p/cefpython/

Version 0.20 is the first release that comes with real programming API:
http://code.google.com/p/cefpython/wiki/API

A simple application looks like this:
Code: Select all
import cefpython
import cefwindow
import win32con
import win32gui

def QuitApplication(windowID, msg, wparam, lparam):
       
        cefpython.CloseBrowser(cefpython.GetBrowserByWindowID(windowID))
        cefwindow.DestroyWindow(windowID)
        win32gui.PostQuitMessage(0)

def CefSimple():

        cefpython.Initialize({"multi_threaded_message_loop": False})
        wndproc = {win32con.WM_CLOSE: QuitApplication, win32con.WM_SIZE: cefpython.WM_SIZE}
        windowID = cefwindow.CreateWindow("CefSimple", "cefsimple", 800, 600, None, None, "icon.ico", wndproc)
        browserID = cefpython.CreateBrowser(windowID, {}, "cefsimple.html")
        cefpython.MessageLoop()
        cefpython.Shutdown()

if __name__ == "__main__":
       
        CefSimple()


Following features are planned for the coming week:
* javascript bindings & callbacks
* popup and modal windows
* resizing and moving windows
* developer tools
* loading content from zip (optionally encrypted)

Cheers,
Czarek.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1943
Joined: Sun Nov 06, 2011 2:12 am

Re: CEF Python 0.20 released

Postby Trindaz » Sat Jul 07, 2012 5:45 am

Looks good Czarek

Is there a google group devoted to this project?
Trindaz
Newbie
 
Posts: 1
Joined: Sat Jul 07, 2012 5:44 am

Re: CEF Python 0.20 released

Postby Czarek » Sun Jul 08, 2012 8:33 am

Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1943
Joined: Sun Nov 06, 2011 2:12 am


Return to CefPython Forum

Who is online

Users browsing this forum: No registered users and 2 guests