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: