seqlib_apply_dialog.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:Enrich2 作者: FowlerLab 项目源码 文件源码
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")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号