Best Practices GUI

More
07 Oct 2020 19:22 #185295 by KornadMa
Best Practices GUI was created by KornadMa
Good evening!

I'm considering building my own GUI for LinuxCNC. I've read that the NML interface is actually a C ++ interface. However, I only find tutorials on how to program GUIs with python.

Personally, I prefer C++. Hence my question. Why does everyone build their GUIs in Python? Are there also C ++ tutorials (couldn't find any)

Many thanks for the help!

Konrad

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

More
07 Oct 2020 19:35 #185296 by cmorley
Replied by cmorley on topic Best Practices GUI
Because python has a much lower bar to get something done and there are toolkits built for linuxcnc specifically to make it even easier.
Python has shown to work satisfactory in most situations other then underpowered CPU, which usually is actually an openGL problem.
Python is relatively easy for a user to customize to suit their situation.

Tthere is very little documentation on C/C++ other then source code.
HALUI would be a C++ example of reading and writing to linuxcnc using NML.

If you do build one, I would suggest GTK3 if using C or QT5 if using C++
then with some planning and care, you could use linuxcnc 's toolkits (GladeVCP or QtVCP) in your design.too.

IIRC Machinekit uses C++ for their screen toolkit.

Chris
The following user(s) said Thank You: Aciera, KornadMa

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

More
10 Oct 2020 14:53 #185607 by KornadMa
Replied by KornadMa on topic Best Practices GUI
Thanks for your help.

I will start using python. Maybe i will switch to C++ .

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

Time to create page: 0.064 seconds
Powered by Kunena Forum