def sub_menu6(office: Office): while True: screenClear() print() print() print('\t File name : "{}" '.format(office.getOfficeFileName())) print() print() office.showFiles() print() print() print('\tGeri (Back) <<b>> , Çıkış (Exit) <<e>>') tmp2 = input('\tSeçim (Selection) : ').strip() if tmp2.lower() == 'e': exit(0) elif tmp2.lower() == 'b': return elif tmp2.isdigit(): slc2 = int(tmp2) screenClear() print() print() print('\t File name : "{}" '.format(office.getOfficeFileName())) print() print() office.saveFile(index=slc2) print() print() input('\tDevam (Continue) << enter >> : ')
def sub_menu5(office: Office): while True: screenClear() print() print() print('\t File name : "{}" '.format(office.getOfficeFileName())) print() print() print('\t **** MENU **** ') print('\t-----------------------') print( '\t1) Dosyanın ilk satırlarını "hex editor"de aç.(Show first line of the file with "hex editor") ' ) print('\t2) Dosyayı "hex editor"de aç. (Open file with "hex editor") ') print( '\t3) Tüm dosyaların ilk satırlarını "hex editor"de aç. (Show first line of the files with "hex editor")' ) print( '\t4) Tüm dosyaları sırayla "hex editor"de aç. (Open files in order with "hex editor" )' ) print() print() print('\tGeri (Back) <<b>> , Çıkış (Exit) <<e>>') tmp = input('\tSeçim (Selection) : ').strip() if tmp.lower() == 'e': exit(0) elif tmp.lower() == 'b': return elif tmp.isdigit(): slc = int(tmp) if slc == 1: while True: screenClear() print() print() print('\t File name : "{}" '.format( office.getOfficeFileName())) print() office.showFiles() print() print() print('\tGeri (Back) <<b>> , Çıkış (Exit) <<e>>') tmp2 = input('\tSeçim (Selection) : ').strip() if tmp2.lower() == 'e': exit(0) elif tmp2.lower() == 'b': break elif tmp2.isdigit(): slc2 = int(tmp2) screenClear() print() print() print('\t File name : "{}" '.format( office.getOfficeFileName())) print() office.showSummaryFileHexEditor(index=slc2) print() print() input('\tDevam (Continue) << enter >> : ') # elif slc == 2: while True: screenClear() print() print() print('\t File name : "{}" '.format( office.getOfficeFileName())) print() office.showFiles() print() print() print('\tGeri (Back) <<b>> , Çıkış (Exit) <<e>>') tmp2 = input('\tSeçim (Selection) : ').strip() if tmp2.lower() == 'e': exit(0) elif tmp2.lower() == 'b': break elif tmp2.isdigit(): slc2 = int(tmp2) screenClear() print() print() print('\t File name : "{}" '.format( office.getOfficeFileName())) print() office.showFileHexEditor(index=slc2) print() print() input('\tDevam (Continue) << enter >> : ') # elif slc == 3: screenClear() print() print() print('\t File name : "{}" '.format( office.getOfficeFileName())) print() office.showSummaryHexAllFiles() print() print() input('\tDevam (Continue) << enter >> : ') # elif slc == 4: screenClear() office.showHexAllFiles()
def sub_menu3(office: Office): while True: screenClear() print() print() print('\t File name : "{}" '.format(office.getOfficeFileName())) print() print() print('\t **** MENU **** ') print('\t-----------------------') print( '\t1) Tek tek dosya imzalarını kontrol et. (Check one file signature)' ) print( '\t2) Bütün dosyaların imzalarını kontrol et. (Check all files signature)' ) print() print() print('\tGeri (Back) <<b>> , Çıkış (Exit) <<e>>') tmp = input('\tSeçim (Selection) : ').strip() if tmp.lower() == 'e': exit(0) elif tmp.lower() == 'b': return elif tmp.isdigit(): slc = int(tmp) if slc == 1: while True: screenClear() print() print() print('\t File name : "{}" '.format( office.getOfficeFileName())) print() print() office.showFiles() print() print() print() print() print('\tGeri (Back) <<b>> , Çıkış (Exit) <<e>>') tmp2 = input('\tSeçim (Selection) : ').strip() if tmp2.lower() == 'e': exit(0) elif tmp2.lower() == 'b': break elif tmp2.isdigit(): slc = int(tmp2) screenClear() print() print() print() office.showCheckFile(index=slc) print() print() print() input('\tDevam (Continue) << enter >> : ') if slc == 2: screenClear() print() print() print('\t File name : "{}" '.format( office.getOfficeFileName())) print() office.showCheckAllFiles() print() print() input('\tDevam (Continue) << enter >> : ')