Advanced Search

Search Results (Searched for: )

  • 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 - 20191 out of 20191 results.
Time to create page: 0.346 seconds
Powered by Kunena Forum