コード例 #1
0
    def getReportText(self, fileDir):

        text = redRReports.createTable(self.data)

        return {
            self.widgetName: {
                'includeInReports': self.includeInReports,
                'text': text
            }
        }
コード例 #2
0
ファイル: listBox.py プロジェクト: MatthewASimonson/r-orange
    def getReportText(self, fileDir):
        items = self.getItems()
        selected = self.currentSelection()
        new = []
        
        for x in items:
            if x in selected:
                new.append([_('Selected'), x])
            else:
                new.append([_('Not Selected'),x])
        #print new
        text = redRReports.createTable(new,columnNames=[_('Selection'),_('Option')])
        # if text != '':
            # text += '\nSelected text has * in front'
        
        r = {self.widgetName:{'includeInReports': self.includeInReports, 'text': text}}

        return r
コード例 #3
0
ファイル: listBox.py プロジェクト: aourednik/Red-R
    def getReportText(self, fileDir):
        items = self.getItems()
        selected = self.currentSelection()
        new = []

        for x in items:
            if x in selected:
                new.append([_('Selected'), x])
            else:
                new.append([_('Not Selected'), x])
        #print new
        text = redRReports.createTable(
            new, columnNames=[_('Selection'), _('Option')])
        # if text != '':
        # text += '\nSelected text has * in front'

        r = {
            self.widgetName: {
                'includeInReports': self.includeInReports,
                'text': text
            }
        }

        return r
コード例 #4
0
ファイル: table.py プロジェクト: MatthewASimonson/r-orange
 def getReportText(self, fileDir):
     
     text = redRReports.createTable(self.data)
     
     return {self.widgetName:{'includeInReports': self.includeInReports, 'text': text}}