- Posts: 20
- Thank you received: 0
Introduction: ArtSoft / Mach3 forum drove me here
cmorley wrote: Yes, absolute and relative mean referenced from machine origin, relative is referenced from current user origin.
It's common labels on DROs that machinists might use.
It's also slightly more informative the obscure G code labels - at least untill you are used to the gcode labels.
Yep, I think REL and ABS are much clearer than G53/G54. In Mach3 you can toggle "machine coordinates", on = ABS, off = REL. I am used to this. I understand some people use additional coordinate system slots (e.g. G55-G59) but it is something I struggle to see the need for. Would you agree that the ability to select a different coordinate system than G53 and G54 does not warrant an on-screen widget? I am including a DMI input in the layuout...
cmorley wrote: i would think you should switch to a toolkit that linuxcnc actually supports before spending a lot of time tweaking your code. Linuxcnc's toolkits use special widgets for many functions that makes coding much easier.
If you build a screen completely with plain widgets you will have a lot of cranky python code to add to make it work.
Yes, I should really, shouldn't I... I looked at some screenshots of GladeVCP for LinuxCNC and saw the goodies in the widget palettes, and I've skimmed through the documentation for it - so I understand there are dedicated widgets for a lot of stuff. Quite look forward to trying it out! BUT. My plan is to stick the LinuxCNC ISO on an old Thinkpad X61 I have here, so I don't have to deal with building/configuring my main laptop for LinuxCNC - aaaand the power supply for that laptop is in storage. Once I've fetched it I will switch over. That said, I don't feel like I'm wasting my time working on the layout in plain Glade/GTK3; I haven't spent any time writing Python (main.py is only about 100 lines, and most of that deals with the feedback sounds), 99% of the effort has gone into the grids and the CSS for the widgets, both of which should be mostly reusable - or at least the hard won knowledge will be transferable.
Please Log in to join the conversation.
If you change user systems alot then a button is much nicer. I bet most don't often.
These are the things that can be easily changed later.
Css is not supported in gtk2 - the version of GTK linuxcnc currently supports
If you wish to target the released 2.8 version GTK2 is what's used.
It's an unfortunate time to pick GTK for a new screen.
We use a very old version in linuxcnc and there are people apparently working on a GTK3 update but no idea on when that would be incorporated into linuxcnc.
At that point though GTK2 will not be supported in the development version anymore.
Please Log in to join the conversation.
If you had a large milling machine with say 8 fixtures or say multiple vices on the table, the G54 et al offsets make sense.
If you run up the Gmoccapy sim, different modes are enabled if you click on the DRO's. I still don't understand what its doing...
Please Log in to join the conversation.
clicking the DRO just cycles which is shown in large font.
Please Log in to join the conversation.
cmorley wrote: Css is not supported in gtk2 - the version of GTK linuxcnc currently supports
If you wish to target the released 2.8 version GTK2 is what's used.
It's an unfortunate time to pick GTK for a new screen.
We use a very old version in linuxcnc and there are people apparently working on a GTK3 update but no idea on when that would be incorporated into linuxcnc.
At that point though GTK2 will not be supported in the development version anymore.
Crikey. That changes things. I'm not sure porting GladeVCP to GTK3 is even worth the effort now, seeing as GTK4 is already out . And having looked at some of the attempts, the changes involved - and what has been skipped - I'm inclined to say it would be better to start from scratch. In any case, this definitely dampens my enthusiasm somewhat.
And I was so chuffed with the " Tellite " style button I'd just designed :pinch:
Attachment not found
Attachment not found
It's made from two toggleButtons, which when placed in a grid with the class "tellite" will make them both depress and alternate regardless of where you click on the buttons. The styling too is automatic, thanks to the power of CSS. Just had to be done
And the CSS isn't too complicated either (this is only the "Tellite" specific bit - the rest of the styling is inherited from the regular toggleButtons):
Edit: Ah, problem. discourse.gnome.org/t/glade-for-gtk4/4877
Please Log in to join the conversation.
Or as an alternative, try qtpyvcp which is not part of the distro but lives here
www.qtpyvcp.com/
They have a very active chat I follow a bit on riot.im
They would probably be receptive to new widgets to do what you want.
Please Log in to join the conversation.
- robertspark
- Offline
- Platinum Member
-
- Posts: 913
- Thank you received: 0
Etaoin wrote:
robertspark wrote: help...{linux noob}
Code:rob@RobsCNC:~/Downloads$ python3 main.py Traceback (most recent call last): File "main.py", line 3, in <module> import gi ModuleNotFoundError: No module named 'gi'
Hmm. Looks like you don't have PyGObject installed (the language bindings between Python3 and GTK3). Try running "sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0" to get the dependencies. What Linux distribution are you using?
I installed via the linuxcnc iso (Debian buster, linuxcnc 2.
forum.linuxcnc.org/48-gladevcp/40971-how...-get-gladevcp#196434
I am really playing with QT as glade does not seem to be the current recommended route for newer guis I think (I dabble and I'm a noob)
Please Log in to join the conversation.
robertspark wrote: I installed via the linuxcnc iso (Debian buster, linuxcnc 2.
, upgraded linuxcnc to master, installed mate-desktop-envionment, installed glade-gtk2 from linuxcnc repository
Seems the best way to ensure you get the correct packages, and package versions, to support LinuxCNC. Also saves you having to swap out the kernel. But I may have to do things manually since I would prefer to keep SystemD out. As you may know Debian forces SystemD on its users since Debian 9 ("Stretch"), so many people have jumped ship to a fork of Debian called Devuan , which does not have this hard dependency. Might seem like an insignificant issue to some - and if you don't care you don't care, that's not a problem. Thankfully, those who do care usually have a deep enough understanding of Linux/Unix to help themselves
robertspark wrote: I am really playing with QT as glade does not seem to be the current recommended route for newer guis I think (I dabble and I'm a noob)
I have a lot of respect for theoretical knowledge, but all I know I have learned through doing. And you have to start somewhere.
Please Log in to join the conversation.
- robertspark
- Offline
- Platinum Member
-
- Posts: 913
- Thank you received: 0
www.linux.com/training-tutorials/underst...g-and-using-systemd/
to be fair, I can't be bothered either.... does it work? {like arguing which is better, ford or gm?} ... does it really matter in the world of LinuxCNC where all you want is to machine / cut something out .... as long as it works and the cake tastes good, it doesn't matter what the baking tin or oven looks like or how it works.
(Lots of the software that linuxcnc runs on / requires is a little behind the newest, latest and greatest releases)
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22010
- Thank you received: 3
Removed:Etaoin wrote: Seems the best way to ensure you get the correct packages, and package versions, to support LinuxCNC. Also saves you having to swap out the kernel. But I may have to do things manually since I would prefer to keep SystemD out. As you may know Debian forces SystemD on its users since Debian 9 ("Stretch"), so many people have jumped ship to a fork of Debian called Devuan , which does not have this hard dependency. Might seem like an insignificant issue to some - and if you don't care you don't care, that's not a problem. Thankfully, those who do care usually have a deep enough understanding of Linux/Unix to help themselves
forum.linuxcnc.org/18-computer/38342-iso...ysvinit-distribution
Still available:
forum.linuxcnc.org/9-installing-linuxcnc...tools-and-no-systemd
I hated Mint for that, but it is by far the best distro, so i continued using it. Then they refused Snap, so i started loving them again and send them some money whenever i can afford it.
Please Log in to join the conversation.
