

def __init__(self, parent=None):
    super(MainFrame, self).__init__(parent)
    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)))
    '\n        Embedding GtkPlug is also possible with the pygtk module.\n        ---------------------------------------------------------\n        self.plug = gtk.Plug(self.winId())\n        import re\n        m = re.search("GtkPlug at 0x(\\w+)", str(self.plug))\n        hexId = m.group(1)\n        gtkPlugPtr = int(hexId, 16)\n        ...\n        plug.show()\n        self.show()\n        ---------------------------------------------------------\n        '
    windowInfo = cefpython.WindowInfo()
    windowInfo.SetAsChild(gtkPlugPtr)
    self.browser = cefpython.CreateBrowserSync(gtkPlugPtr, 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__/VarMisuse@97/305 `windowInfo`->`gtkPlugPtr`