Advanced Search

Search Results (Searched for: )

  • zz912
  • zz912's Avatar
13 Jan 2025 14:56 - 13 Jan 2025 14:57
Replied by zz912 on topic LCNC 2.10 - Ask for AUTOMATIC_G43

LCNC 2.10 - Ask for AUTOMATIC_G43

Category: Gmoccapy

@HansU - what do you think?

I think, it would be better to turn off the message in the SETUP tab in Gmoccapy, rather than in the INI file.
Or just in the Gmoccapy configuration file.
Hans was just tidying up the parameters in the INI file and therefore he wouldn't like it.

I would also add to the text that reactivating "AUTOMATIC G43" is possible using REMAP. An example can be found in any SIM Gmoccapy configuration.

Version for LCNC 2.10 will be Gmoccapy 3.5.0
  • Aciera
  • Aciera's Avatar
13 Jan 2025 14:24
Replied by Aciera on topic LCNC 2.10 - Ask for AUTOMATIC_G43

LCNC 2.10 - Ask for AUTOMATIC_G43

Category: Gmoccapy

Maybe something like this:

1. Insert this  at the end of the '__init__(self, argv)' method in 'gmoccapy' (ie after line 516):
        startup_message = self.get_ini_info.get_startup_message()
        if startup_message == None:
            message = "Important change for version 2.10:\n\n Gmoccapy does no longer automatically retain G43 after a toolchange!"
            self.dialogs.warning_dialog(self, _(message),
                  "\n\n\n To remove this warning add the following line to the [DISPLAY] section of your ini file:\n\n STARTUP_MESSAGE = None ")
        elif startup_message.lower() != 'none':
            print('startup_message = ',startup_message)
            self.dialogs.warning_dialog(self, _(startup_message),' ')

2. Insert this a the end of 'lib/python/gmoccapy/getiniinfo.py':
    def get_startup_message(self):
        message = self.inifile.find("DISPLAY", "STARTUP_MESSAGE")
        if message:
            return message
        else:
            return None

Looks like this:
 
Displaying 20191 - 20192 out of 20192 results.
Time to create page: 2.514 seconds
Powered by Kunena Forum