Lathe Macros

More
3 years 5 months ago - 3 years 5 months ago #271559 by Baldorcete
Replied by Baldorcete on topic Lathe Macros
Second data entry: Replacing lathemacro.ui with the one in the example shows the button. Of course, other things break.

If I'm remembering rigth, I downloaded the last available verision for LinuxCNC 2.8, just copied to the config dir, and everithing minus the play button worked. I can not find now the page or the link I downloaded

Must compare lathemacro.ui from the example and the one downloaded, an see what are the relevant diferences. For starters, they are very diferent sizes.

lathemacro.ui is the one that does not work. lathemacro.example.ui is the one from the example.

Any hint at what file I must look to find the exact lathemacro version I downloaded'

 
Last edit: 3 years 5 months ago by Baldorcete. Reason: Forget last question.

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

More
3 years 5 months ago #271568 by andypugh
Replied by andypugh on topic Lathe Macros
This version of the interface uses a sparsely-populated transparent table to position the number boxes. The two files contain different numbers of pointless
Code:
<child> <placeholder/> </child>
lines. If you delete all of those the file shrinks to 132k.

However, the Glade editor will tend to put them back in again.
(It's worth taking them out though, it really speeds up loading in the editor)

I don't actually use the button, as I don't really approve of touchscreens causing axis movement. I have a hardware button to start the routines on my systems. I accept that's no help to you though.

Can you use the dev version of LinuxCNC? The Gtk3 / Python 3 version has betted graphics and more cycles.

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

More
3 years 5 months ago #271597 by Baldorcete
Replied by Baldorcete on topic Lathe Macros
Moving to 2.9 is a different project. First want to have 2.8 just working as I like, then start experimenting with 2.9. Currentlly using hardware version control.... Just a base, known to work bootable pen drive, an a bunch alternative ones for experimenting. :-)

If I can't have lathemacros working in my base installation this week, I will forget about them and try again when moving to a new LinuxCNC version.

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

More
3 years 5 months ago #271602 by andypugh
Replied by andypugh on topic Lathe Macros
Looking in detail at the XML I think that I can see the difference:
Code:
NOT WORKING <object class="GtkTable" id="table3"> <property name="visible">True</property> <property name="can_focus">False</property> <property name="n_rows">20</property> <property name="n_columns">12</property> <property name="homogeneous">True</property> <child> <object class="GtkButton" id="bore.action"> <property name="width_request">50</property> <property name="height_request">20</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> <property name="related_action">bore.go</property> <property name="use_action_appearance">False</property> <property name="use_underline">True</property> <child> <object class="GtkImage" id="image4"> <property name="visible">True</property> <property name="can_focus">False</property> <property name="icon_name">media-playback-start</property> </object> </child> </object> <packing> <property name="left_attach">10</property> <property name="right_attach">12</property> <property name="top_attach">18</property> <property name="bottom_attach">20</property> <property name="x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL</property> <property name="y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL</property> </packing> </child> WORKING <object class="GtkTable" id="table3"> <property name="visible">True</property> <property name="can_focus">False</property> <property name="n_rows">20</property> <property name="n_columns">12</property> <property name="homogeneous">True</property> <child> <object class="GtkEventBox" id="eventbox26"> <property name="visible">True</property> <property name="can_focus">False</property> <child> <object class="GtkButton" id="bore.action"> <property name="use_action_appearance">False</property> <property name="related_action">bore.go</property> <property name="width_request">50</property> <property name="height_request">20</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> <property name="use_underline">True</property> <child> <object class="GtkImage" id="image4"> <property name="visible">True</property> <property name="can_focus">False</property> <property name="stock">gtk-media-play</property> </object> </child> </object> </child> </object> <packing> <property name="left_attach">10</property> <property name="right_attach">12</property> <property name="top_attach">18</property> <property name="bottom_attach">20</property> </packing> </child>

In the working version the button is inside an eventbox, in the non-working version it is not.

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

More
3 years 5 months ago #271603 by andypugh
Replied by andypugh on topic Lathe Macros
I couldn't resist trying to fix this. Here is a new version of lathemacro.ui that appears to work for me.
The following user(s) said Thank You: tommylight, Clive S, Baldorcete

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

More
3 years 5 months ago #271612 by Baldorcete
Replied by Baldorcete on topic Lathe Macros
Thanks a lot.

Done. Results the only thing wrong with example file was not in the file, was the next problem to solve. Just needed to move the .ngc files to the right place.

As you said, beter to move all the buttons that cause the machine to move away from the touch screen, and will do later, gmoccapy will feel empty, when I build a proper contoll panel. Actually is the last item in a long list. Just started to modiffy the lathe two months ago, made first CNC chips this week, and still a lot of hardware modifications to do. (And just received a shipment of steel scraps a few hours ago)

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

Time to create page: 0.535 seconds
Powered by Kunena Forum