def load_file(self, header_indexies, footer_indexies): try: self.remove_old_signature_cell_color() self.update_rows(self.resource.binary) self.change_signature_cell_color(header_indexies, footer_indexies) if fy.check_hidden_data(self.resource.binary, header_indexies, footer_indexies): ui_parts.message_box('This file include hidden file.', 'Hidden File Alert', wx.OK | wx.ICON_ERROR) except Exception, e: print e ui_parts.message_box('Can not open file {0}.'.format(self.resource.file_path), 'Load File Error', wx.OK | wx.ICON_ERROR)
def check_hidden_data(self, binary_string, header_indexies, footer_indexies): if fy.check_hidden_data(binary_string, header_indexies, footer_indexies): ui_parts.message_box('This file include hidden file.', 'Hidden File Alert', wx.OK | wx.ICON_ERROR)