def METHOD_NAME(self, filename):
    if filename:
        self.linuxcnc.mode(linuxcnc.MODE_AUTO)
        old = self.gstat.stat.file
        self.linuxcnc.program_open(filename)
        if old == filename:
            self.gstat.emit('file-loaded', filename)