예제 #1
0
    def save_summary_table(self, p):
        w = SummaryPDFTableWriter()
        items = self.interpreted_ages
        title = self.get_title()

        opt = self.pdf_table_options
        # w.use_alternating_background=opt.use_alternating_background
        w.options = opt
        w.build(p, items, title)
예제 #2
0
    def save_summary_table(self, p):
        w = SummaryPDFTableWriter()
        items = self.interpreted_ages
        title = self.get_title()

        opt=self.pdf_table_options
        # w.use_alternating_background=opt.use_alternating_background
        w.options=opt
        w.build(p, items, title)
예제 #3
0
    def save_summary_table(self, root, auto_view=False):
        name = '{}_summary'.format(self.name)
        w = SummaryPDFTableWriter()
        items = self.interpreted_ages
        title = self.get_title()

        opt = self.pdf_table_options
        p, _ = unique_path(root, name, extension='.pdf')
        w.options = opt
        w.build(p, items, title)
        if auto_view:
            view_file(p)
예제 #4
0
    def make_table(self, title):
        samples = self.items
        uab = self.use_alternating_background
        t = SummaryPDFTableWriter(
                                  use_alternating_background=uab,
                                  notes_template=self.notes_template
                                  )

        t.col_widths = self._get_column_widths()

#        p = '/Users/ross/Sandbox/aaasumtable.pdf'
        p = self._get_save_path()
        if p:
            t.build(p, samples, title=title)
            # dump our col widths
            self._dump_widths()

            return p