Gremlin
28 Dec 2012 21:32 #28120
by BigJohnT
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
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.
23 Apr 2013 10:09 #33038
by stevenlin
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)
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)
Please Log in or Create an account to join the conversation.
23 Apr 2013 13:13 #33041
by ArcEye
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