from os import walk


class Interface:
    
    def __init__(self, folder):
        self.folder = folder
        
    
    def readFiles(self):
        self.filenames = next(walk(self.folder), (None, None, []))[2]
        
        
    
    def runningGui(self):
        
        chosenFile = {}
        counter = 0
        
        self.readFiles()
        
        for i in self.filenames:
            counter += 1
            chosenFile[counter] = i
            print(counter, ":", i)
        
        chosenValue = int(input("Choose a Value: "))
        

        if chosenValue > len(chosenFile) or chosenValue <= 0:
            raise ValueError ("Invalid Number")

        
        return chosenFile[chosenValue]
        

1a1cddc626b74c8775b4ab439ff70494fa5ce719
<mask token>


class Interface:
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Interface:
    <mask token>

    def readFiles(self):
        self.filenames = next(walk(self.folder), (None, None, []))[2]
    <mask token>

<mask token>


class Interface:
    <mask token>

    def readFiles(self):
        self.filenames = next(walk(self.folder), (None, None, []))[2]

    def runningGui(self):
        chosenFile = {}
        counter = 0
        self.readFiles()
        for i in self.filenames:
            counter += 1
            chosenFile[counter] = i
            print(counter, ':', i)
        chosenValue = int(input('Choose a Value: '))
        if chosenValue > len(chosenFile) or chosenValue <= 0:
            raise ValueError('Invalid Number')
        return chosenFile[chosenValue]

from os import walk


class Interface:

    def __init__(self, folder):
        self.folder = folder

    def readFiles(self):
        self.filenames = next(walk(self.folder), (None, None, []))[2]

    def runningGui(self):
        chosenFile = {}
        counter = 0
        self.readFiles()
        for i in self.filenames:
            counter += 1
            chosenFile[counter] = i
            print(counter, ':', i)
        chosenValue = int(input('Choose a Value: '))
        if chosenValue > len(chosenFile) or chosenValue <= 0:
            raise ValueError('Invalid Number')
        return chosenFile[chosenValue]

from os import walk


class Interface:
    
    def __init__(self, folder):
        self.folder = folder
        
    
    def readFiles(self):
        self.filenames = next(walk(self.folder), (None, None, []))[2]
        
        
    
    def runningGui(self):
        
        chosenFile = {}
        counter = 0
        
        self.readFiles()
        
        for i in self.filenames:
            counter += 1
            chosenFile[counter] = i
            print(counter, ":", i)
        
        chosenValue = int(input("Choose a Value: "))
        

        if chosenValue > len(chosenFile) or chosenValue <= 0:
            raise ValueError ("Invalid Number")

        
        return chosenFile[chosenValue]
        
