Gremlin

More
27 Dec 2012 01:31 #28050 by BigJohnT
Replied by BigJohnT on topic Gremlin
Thanks, also it helps me remember...

John

Please Log in or Create an account to join the conversation.

More
28 Dec 2012 21:32 #28120 by BigJohnT
Replied by BigJohnT on topic Gremlin
On the Gremlin reverse engineering holy grail I've just figured out how to turn the DRO off and on and change the font of the DRO. A small step for hillbilly kind... in any case I think that I've figured out all I know about gremlin so I'll finish the write up on it shortly.

Actually I think that was the last nut to crack to build a fully custom GUI... on to a full featured custom GUI.

John

Please Log in or Create an account to join the conversation.

More
23 Apr 2013 10:09 #33038 by stevenlin
Replied by stevenlin on topic Gremlin
I'm doing the same thing, I want to integrate the gremlin into my GUI,but I don't know how to do this.
I do a test below: I add a QPushButton and when clicked ,i want the gremlin preview widget appear in my QT window.
but actually it popup a toplevel gremlin.
can you give me any idea to integrate them?


CODE:
from gremlin import *
......
self.graph = QWidget()
self.bn1 = QPushButton('button')
self.bn1.clicked.connect(self.bnclicked)
...
def bnclicked(self):
test = QX11EmbedContainer(self.graph)
process = QProcess(test)
id = test.winId()
test.show()
cmd = QString("python /home/kinlin/linuxcnc/configs/robotarm/gremlin-run.py /home/kinlin/linuxcnc/configs/robotarm/axis_9axis.ini")
process.start(cmd)
Attachments:

Please Log in or Create an account to join the conversation.

More
23 Apr 2013 13:13 #33041 by ArcEye
Replied by ArcEye on topic Gremlin
Hi

I imagine that the python bindings are the same as the C++ libs.

In which case you need to call QX11EmbedContainer::embedClient(wID) where wID is the X window ID of the Gremlin window

regards
The following user(s) said Thank You: stevenlin

Please Log in or Create an account to join the conversation.

Time to create page: 0.098 seconds
Powered by Kunena Forum