def body(self, master):
"""
Generates the required text listing all SeqLibs that will have their FASTQ options updated.
Displays the "OK" and "Cancel" buttons.
"""
if len(self.target_ids) == 0:
message_string = "No elegible SeqLibs selected."
elif len(self.target_ids) == 1:
message_string = 'Apply FASTQ filtering options from "{}" to "{}"?'.format(self.tree.get_element(self.source_id).name, self.tree.get_element(self.target_ids[0]).name)
else:
bullet = " " + u"\u25C6"
message_string = 'Apply FASTQ filtering options from "{}"" to the following?\n'.format(self.tree.get_element(self.source_id).name)
for x in self.target_ids:
message_string += u"{bullet} {name}\n".format(bullet=bullet, name=self.tree.get_element(x).name)
message = ttk.Label(master, text=message_string, justify="left")
message.grid(row=0, sticky="w")
评论列表
文章目录