Skip to content

Instantly share code, notes, and snippets.

View pmellati's full-sized avatar

Pouria Mellati pmellati

View GitHub Profile
@pmellati
pmellati / webkit_gtk_transparency.py
Created December 3, 2013 16:01
Shows how to configure a transparency-enabled Webkit WebView in Gtk 3. 2013.
# Transparency in Webkit and Gtk.
from gi.repository import Gtk, Gdk, GLib, WebKit
transparent_window_style_provider = Gtk.CssProvider()
transparent_window_style_provider.load_from_data("""
GtkWindow {
background-color: rgba(100,100,0,0);
background-image: none;