def __init__(self, parent=None):
        super(MainFrame, self).__init__(parent)
        
        # QX11EmbedContainer provides an X11 window. The CEF
        # browser can be embedded only by providing a GtkWidget
        # pointer. So we're embedding a GtkPlug inside the X11
        # window. In latest CEF trunk it is possible to embed
        # the CEF browser by providing X11 window id. So it will
        # be possible to remove the GTK dependency from CEF
        # Python in the future.
        gtkPlugPtr = cefpython.WindowUtils.gtk_plug_new(\
                int(self.winId()))
        print("[pyqt.py] MainFrame: GDK Native Window id: "+str(self.winId()))
        print("[pyqt.py] MainFrame: GTK Plug ptr: "+str(gtkPlugPtr))

        """
        Embedding GtkPlug is also possible with the pygtk module.
        ---------------------------------------------------------
        self.plug = gtk.Plug(self.winId())
        import re
        m = re.search("GtkPlug at 0x(\w+)", str(self.plug))
        hexId = m.group(1)
        gtkPlugPtr = int(hexId, 16)
        ...
        plug.show()
        self.show()
        ---------------------------------------------------------
        """

        windowInfo = cefpython.WindowInfo()
        # Need to pass to CEF the GtkWidget* pointer
        windowInfo.SetAsChild(gtkPlugPtr)
        # Linux requires adding "file://" for local files,
        # otherwise /home/some will be replaced as http://home/some
        self.browser = cefpython.CreateBrowserSync(windowInfo,
                browserSettings={},
                navigateUrl="file://"+GetApplicationPath("example.html"))
        
        cefpython.WindowUtils.gtk_widget_show(gtkPlugPtr)
        self.show()
dataset/ETHPy150Open cztomczak/cefpython/cefpython/cef3/linux/binaries_32bit/pyqt.py/MainFrame.__init__/original