def _update_source_details(self): source_zip_count = self.tree.zip_count source_folder_size = FileHelpers.format_bytes(self.tree.size) zips_text = 'Zips: ' + str(source_zip_count) size_text = 'Size: ' + str(source_folder_size) self.count_label.SetLabel(zips_text) self.size_label.SetLabel(size_text)
def size(self, places=2): return FileHelpers.format_bytes(self.size_raw, places)