Not sure if you're looking for python or C++. In case it's the former
you could use the base classes from the FreeCAD workbench:

https://github.com/mlampert/machinekit-workbench

All files which start with MK... are independent of FreeCAD and/or QT.
The final class which ties everything together is in machinekit.py,
which can also function without FreeCAD but it does use a QT base
object for signal propagation into the UI. You can probably replace
that quite easy with whatever GTK2 uses for signals/notifications.

Other than that you are expected to call _update() in machinekit.py
periodically for service discovery and message processing.

HTH and let me know if you have any questions.


On Wed, 4 Dec 2019 18:17:42 -0800 (PST)
justin White <[email protected]> wrote:

> Every once in a while I sit down and try to get something going in QT 
> creator for remaking  My project machine LinuxCNC GUI to QT for use
> with a remote instance of Machinekit. Right now this machine runs
> LinuxCNC with a mesa 7i96, and it works just fine, however my ideal
> setup is to use MKSOCFPGA on the DE10-Nano with the interface board I
> created to replace the mesa hardware and get the hal side off of the
> x86 PC. Getting a QT ui going would just be too much work even if I
> could get it started
> 
> Problem is AFAIK all of the remote stuff is baked into qtquickvcp,
> and not MK's gladevcp has nothing new. I'm fairly certain I can get
> the existing GTK2 UI to run under MK as I've made a GTK2 test UI for
> my interface board that runs in both MK and LinuxCNC, but I'd need
> remote capabilities. The other day I was playing with linuxcncrsh and
> was able to control basic things on my MK test GUI with it but
> linuxcncrsh has no ability to set pins. I tried halrmt which
> supposedly does set pins but it does not seem to run on MK. From what
> I've read, linuxcncrsh and halrmt are both poorly coded so I don't
> think they are ideal anyway. I guess the basic question is is there
> any way to get machinetalk or any small useable portion of it to work
> with a GTK2 GUI?
> 

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/20191204201912.04492d26%40yolanda.

Reply via email to