def _play_audio(self): self.audio_full_path = open_file(self, 'Choose file to be played', FILE_TYPE_FILTER['Audio']) if self.audio_full_path is None: return play_audio(self.audio_full_path)
def _play_video(self): self.video_full_path = open_file(self, 'Choose file to be played', FILE_TYPE_FILTER['Video']) if self.video_full_path is None: return play_video(self.video_full_path)
def _load_stego_image(self): self.stego_full_path = open_file( self, 'Choose stego image', FILE_TYPE_FILTER['Image']) if self.stego_full_path is None: return _, file_name = path.split(self.stego_full_path) self.button_load_stego.setText(f'Chosen image: {file_name}')
def _open_embedded_file(self): self.embed_full_path = open_file( self, 'Choose file to be embedded', FILE_TYPE_FILTER['Any']) if self.embed_full_path is None: return _, file_name = path.split(self.embed_full_path) self.button_load_embed.setText(f'Chosen file: {file_name}')
def _load_stego_video(self): self.stego_full_path = open_file(self, 'Choose stego video', FILE_TYPE_FILTER['Video']) if self.stego_full_path is None: return _, file_name = path.split(self.stego_full_path) self.button_load_stego.setText(f'Chosen video: {file_name}')
def _load_stego_audio(self): self.stego_full_path = open_file(self, 'Choose stego audio', FILE_TYPE_FILTER['Audio']) if self.stego_full_path is None: return _, file_name = path.split(self.stego_full_path) self.button_load_stego.setText(f'Chosen audio: {file_name}') self.button_save_extracted.setDisabled(True)
def _open_cover_audio(self): self.cover_full_path = open_file(self, 'Choose cover audio', FILE_TYPE_FILTER['Audio']) if self.cover_full_path is None: return _, file_name = path.split(self.cover_full_path) self.original_file_name = file_name self.button_load_cover.setText(f'Chosen audio: {file_name}')
def _open_cover_image(self): self.cover_full_path = open_file( self, 'Choose cover image', FILE_TYPE_FILTER['Image']) if self.cover_full_path is None: return _, file_name = path.split(self.cover_full_path) self.original_file_name = file_name self.cover_image = QPixmap(self.cover_full_path) self.button_load_cover.setText(f'Chosen image: {file_name}') self.image_l.setPixmap(self.cover_image)