rdmenezes / cefpython

Automatically exported from code.google.com/p/cefpython
1 stars 0 forks source link

SetTransparentPainting(True) in Ubuntu12.04 32bit running cefpython1 #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm running Ubuntu 12.04 and trying to create a transparent browser to put on 
to of an mplayer. As said in the WindowInfo class API the 
SetTransparentPainting(True) method is available in CEF 1 only on Windows & 
Mac. 

Is there any hope this method would be available on Linux CEFphyton1?

When I edit pygtk_.py on line 91 I insert 
windowInfo.SetTransparentPainting(True) I (as expected) get the error message:

Traceback (most recent call last):

  File "pygtk_.py", line 179, in <module>
    PyGTKExample()

  File "pygtk_.py", line 91, in __init__
    windowInfo.SetTransparentPainting(True)

AttributeError: 'cefpython_py27.WindowInfo' object has no attribute 
'SetTransparentPainting'

Original issue reported on code.google.com by winsto...@gmail.com on 19 Jul 2013 at 12:56

GoogleCodeExporter commented 9 years ago
SetTransparentPainting() is not availabvle in CEF 1 on Linux, though it is
available in CEF 3, so I would recommend upgrading, see cef_linux.h line 132:

https://code.google.com/p/chromiumembedded/source/browse/branches/1453/cef3/incl
ude/internal/cef_linux.h?r=1317#132

See Issue 69 - Jegger has patched CEF Python 3 to add OSR support on Linux,
I'm not sure whether you need transparent painting for the OSR mode or for
the windowed mode, but either way Jegger commits are useful as he has updated
the CEF 3 to the latest revision that added SetAsOffscreen() and
SetTransparentPainting() methods, though you would still need a modify the
window_info.pyx file and expose the SetTransparentPainting() methods to
Linux by modifyding the "IF UNAME_SYSNAME" conditions.

There was a topic regarding transparent windows in windowed-mode, though it
was only about Windows:

https://groups.google.com/d/topic/cefpython/nw1ALM2nv4M/discussion

Please use the CEF Python Forum next time.

Original comment by czarek.t...@gmail.com on 19 Jul 2013 at 7:19