def __init__(self, parent=None): super(FileNotExistException, self).__init__() errorMessage = "The File you selected does not exist"+\ "\nPlease Choose Appropriate File" if parent: dialog = ErrorDialog(parent, errorMessage) dialog.show() dialog.exec_() else: print(errorMessage)
def __init__(self, parent=None): super(SameFileException, self).__init__() errorMessage = "The Destination File and Source File are same. \ Select Different Name for destination file" if parent: dialog = ErrorDialog(parent, errorMessage) dialog.show() dialog.exec_() else: print(errorMessage)
def __init__(self, parent=None): super(OverWriteException, self).__init__() errorMessage = "The Destination File Already Exists"+\ "\nTo overwrite it, tick the box in the application" if parent: dialog = ErrorDialog(parent, errorMessage) dialog.show() dialog.exec_() else: errorMessage = "The Destination File Already Exists"+\ "\nTo overwrite it, add -o or --overwrite flag" print(errorMessage)
def __init__(self, sid, parent=None): super(FileTypeException, self).__init__() filetype = "mp3" if sid==2: filetype = "wav" errorMessage = "The Selected file is not "+filetype+\ "\nSelect the appropriate file" if parent: dialog = ErrorDialog(parent, errorMessage) dialog.show() dialog.exec_() else: print(errorMessage)
def __init__(self, parent=None): super(LibraryException, self).__init__() errorMessage = "There is something wrong with ffmpeg"+\ "\nMake sure that ffmpeg is installed on your machine" if parent: dialog = ErrorDialog(parent, errorMessage) dialog.show() dialog.exec_() else: print(errorMessage)
def __init__(self, sid, parent=None): super(FileTypeException, self).__init__() filetype = "mp3" if sid == 2: filetype = "wav" errorMessage = "The Selected file is not "+filetype+\ "\nSelect the appropriate file" if parent: dialog = ErrorDialog(parent, errorMessage) dialog.show() dialog.exec_() else: print(errorMessage)