Lathe Macros
- mariusl
- Offline
- Platinum Member
I tried your Macro code and it seems to be the thing to use for my application. At least the savestate.ini stuff.
I have a silly question seeing that I am wanting to use this kind of thing with Gmoccapy and a touch screen with no keyboard or mouse. Is there a way to enlarge the spin button so that it could be more touch friendly or should I have another approach here?
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
- andypugh
- Topic Author
- Offline
- Moderator
- Posts: 23538
- Thank you received: 4854
I have a silly question seeing that I am wanting to use this kind of thing with Gmoccapy and a touch screen with no keyboard or mouse. Is there a way to enlarge the spin button so that it could be more touch friendly or should I have another approach here?
Spinbuttons without a keyboard to type the values in to are just painful. Doesn't Gscreen use a widget that pops up a numeric keypad when you tap the box?
Please Log in or Create an account to join the conversation.
- mariusl
- Offline
- Platinum Member
Doesn't Gscreen use a widget that pops up a numeric keypad when you tap the box?
Andy, it does but I dont know if it is available or easy to include in a custom TAB. I will investigate that.
The reason I am looking at a spinbox is that some of the parameters will be adjusted while the machine is running. Things like THC volts one might want to tweak as it runs. That is easy with a spinbox and I have used that with Axis. Now with the touch screen stuff it is not so easy. If I was better versed in python it might have been easy
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
- andypugh
- Topic Author
- Offline
- Moderator
- Posts: 23538
- Thank you received: 4854
Doesn't Gscreen use a widget that pops up a numeric keypad when you tap the box?
Andy, it does but I dont know if it is available or easy to include in a custom TAB. I will investigate that.
Did you get anywhere with this? I ended up writing my own for the milling machine GUI i am playing with.
The setup is in the attached files. There isn't a lot there at the moment, but the pop-up number entry works. Also a set of thread/screw data comboboxes that might be useful.
Please Log in or Create an account to join the conversation.
- mariusl
- Offline
- Platinum Member
I did look at it but for some reason that I ca't remember now, I did not go there. The code for the popup is available in master but my lack of python script knowledge has again stopped me from going further. I am going to get stuck into python very soon as it seems to be an important part of getting things done in LCNC.
I think using the pyncggui popup keyboard would be simple to use for someone that knows python. Maybe you can have a look at that for yourself. I have a screen setup and ready for testing but I am busy with the plasma stuff at the moment.
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
- strykerg
- Offline
- Senior Member
- Posts: 53
- Thank you received: 0
I am currently using Andy's old UI which works fine.
I tried copying all the files in my lathe's config folder and then added the following two lines in the [display] section of my ini:
EMBED_TAB_NAME=Cycles
EMBED_TAB_COMMAND=halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -u lathehandler.py -x {XID} lathemacro.ui
I obviously removed the other ui from that section. when I try to run it says:
**** GLADE VCP INFO: Not a libglade project, trying to load as a GTK builder project
**** GLADE VCP ERROR: With xml file: lathemacro.ui
Invalid tab configuration
Embeded tab command "halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -x 62914716 -u lathehandler.py lathemacro.ui" exited with error: 1
debug file information:
(gladevcp:4797): libglade-WARNING **: Expected <glade-interface>. Got <interface>.
(gladevcp:4797): libglade-WARNING **: did not finish in PARSER_FINISH state
<commandline>:0: gladevcp exited without becoming ready
i'm not sure if I should be installing something before trying to run this? been quite a while since I tried adding something like this to Linuxcnc
Please Log in or Create an account to join the conversation.
- andypugh
- Topic Author
- Offline
- Moderator
- Posts: 23538
- Thank you received: 4854
What version of LinuxCNC are you using, and what version of Glade?
Please Log in or Create an account to join the conversation.
- strykerg
- Offline
- Senior Member
- Posts: 53
- Thank you received: 0
glade version? how do I check? do I have to manually install that? I recently reinstalled everything and just copied my old setup I didn't install glade
*edit*
oh im an idiot. im looking into the linuxcnc help files and there it is
3.1. Prerequisite: Glade installation
To view or modify Glade UI files, you need glade installed - it is not needed just to run a GladeVCP panel. If the glade command is missing, install it with the command:
$ sudo apt-get install glade
ill try it and get back. hopefully by today
Please Log in or Create an account to join the conversation.
- strykerg
- Offline
- Senior Member
- Posts: 53
- Thank you received: 0
I installed it (version 3.6.7) but I still got the same error.
I think I missed something obvious and basic, no idea what tho
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
- Posts: 7761
- Thank you received: 2046
What Screen are you using ?
If it's Gscreen or Gmoccapy the INI entry:
EMBED_TAB_NAME=Cycles
is wrong.
I can give more info when I know what screen your using.
The warning about Libglade is normal.
Chris M
Please Log in or Create an account to join the conversation.