def METHOD_NAME(self):
    if not self.ini:
        return
    self.model.clear()
    files = []
    try:
        for f in os.listdir(self.foldername):
            if f.endswith('.ngc'):
                with open(os.path.join(self.foldername, f), 'r') as temp:
                    first_line = temp.readline().strip()
                    print(first_line)
                    if 'MACROCOMMAND' in first_line:
                        files.append(first_line.strip('; MACROCOMMAND='))
    except:
        pass
    lines = list(filter(bool, files))
    for l in lines:
        self.model.append((l,))
    path = (len(lines)-1,)
    self.tv.scroll_to_cell(path)
    self.tv.set_cursor(path)
    self.entry.set_text('')