Commits

Anonymous committed 7ad3164

works. Remaining issues: Emacsclient doesn’t work. Window goes mostly transparent.

Comments (0)

Files changed (1)

 
 container = QX11EmbedContainer()
 container.show()
+
+def resize():
+    container.resize(670, 630)
+container.resize_ = resize
+
 process = QProcess(container)
+print container.winId()
 args = ["--parent-id", str(container.winId())]
 process.start("emacs", args)
+#process.start("emacsclient-emacs-24", args)
 container.connect(container, SIGNAL("clientClosed()"), app.quit)
+container.connect(container, SIGNAL("clientIsEmbedded()"), container.resize_)
+container.connect(container, SIGNAL("error(QX11EmbedContainer::Error)"), app.quit)
 status = app.exec_()
 process.close()