utils/SettingsReader.py
def select(self, file:str=None) -> None:
        """Selects file with settings, specified literally by path string, opens dialog otherwise.
        
        :param file: Path string.
        :return: None
        """
        if not file:
            self.settingsFile = filedialog.askopenfilename(filetypes = (("eXtensible Markup Language","*.xml"),("all files","*.*")))
        else:
            self.settingsFile = file

        if self.settingsFile:
            self.dataDir = os.path.dirname(self.settingsFile)
            self.main.printToOut('Settings file selected.')
        else:
            self.main.printToOut('WARNING: Nothing selected. Please retry.')
Selects file with settings, specified literally by path string, opens dialog otherwise.
        
        :param file: Path string.
        :return: None
        
Selects file with settings, specified literally by path string, opens dialog otherwise.
Selects file with settings specified literally by path string opens dialog otherwise .
def select(self, file:str=None) -> None:
        if not file:
            self.settingsFile = filedialog.askopenfilename(filetypes = (("eXtensible Markup Language","*.xml"),("all files","*.*")))
        else:
            self.settingsFile = file
        if self.settingsFile:
            self.dataDir = os.path.dirname(self.settingsFile)
            self.main.printToOut('Settings file selected.')
        else:
            self.main.printToOut('WARNING: Nothing selected. Please retry.')
def select ( self , file : str = None ) -> None : if not file : self . settingsFile = filedialog . askopenfilename ( filetypes = ( ( "eXtensible Markup Language" , "*.xml" ) , ( "all files" , "*.*" ) ) ) else : self . settingsFile = file if self . settingsFile : self . dataDir = os . path . dirname ( self . settingsFile ) self . main . printToOut ( 'Settings file selected.' ) else : self . main . printToOut ( 'WARNING: Nothing selected. Please retry.' )
Selects file with settings, specified literally by path string, opens dialog otherwise.
Selects file with settings specified literally by path string opens dialog otherwise .
"""Selects file with settings, specified literally by path string, opens dialog otherwise.
        
        :param file: Path string.
        :return: None
        """
None
self
file
str
None