Beispiel #1
1
    def __init__(self, parent=None, model=None, parentapp=None):
        if parentapp != None:
            self.parentapp = parentapp
        TableCanvas.__init__(self, parent, model)
        self.sortcol = 0
        self.grid_color = '#8996ab'       
        self.rowselectedcolor = '#f6fcd1'

        self.peatactions = {'PDB' : {"Save PDB file":'save_structure',
                                    "View Structure": 'displayStructure',
                                    "View PDB Text": 'viewStructureText'},
                    'Notes' : {"Edit notes": 'edit_notes' },
                    'Link' : {"Edit Link" : 'edit_link', "Open link" : 'open_link'},
                    'File' : {"View File" : 'display_file', "Add File" : 'add_file',
                            "Save File" : 'save_file'},
                    'Table' : {"Edit Table" : 'startLabbook' },              
                    'Ekintype' : {"Open Ekin" : 'startEkin' },
                    'Sequence' : {"Show sequence" : 'display_sequence'},
                    'Project' : {"Open Project" : 'openProjectfromTable',
                                 "Edit Link to Project" : 'editProjectLink'},
                    }

        self.ekin_actions={'NMR titration':'NMR titration',
                              'Protein Stability':'Protein Stability',
                              'pH Activity profile':'Enzyme pH-activity',
                              'Michaelis-Menten kinetics':'Simple enzyme kinetic',
                              'pH stability profile':'pH-stability',
                              'Amyloid formation':'Amyloid formation',
                               'General':'General'}

        self.fileicons = {'txt': 'txticon','img':'imageicon','pdf':'pdficon',
                        'other':'blankicon','zip':'zipicon','doc':'docicon',
                        'xls':'ssheeticon'}
        self.thumbsize = 200
        return
Beispiel #2
0
 def __init__(self, parent=None, model=None):
     TableCanvas.__init__(self, parent, model)
     self.cellbackgr = '#FFFAF0'
     self.entrybackgr = 'white'
     self.selectedcolor = 'yellow'
     self.rowselectedcolor = '#B0E0E6'
     self.multipleselectioncolor = '#ECD672'
     return
    def __init__(self, parent=None, model=None):
        TableCanvas.__init__(self, parent, model)
        self.cellbackgr = "#FFFAF0"
        self.entrybackgr = "white"

        self.selectedcolor = "yellow"
        self.rowselectedcolor = "#B0E0E6"
        self.multipleselectioncolor = "#ECD672"

        return
Beispiel #4
0
     def __init__(self, parent=None, model=None):
         TableCanvas.__init__(self, parent, model)
         self.cellbackgr = '#FFFAF0'
         self.entrybackgr = 'white'

         self.selectedcolor = 'yellow'
         self.rowselectedcolor = '#B0E0E6'
         self.multipleselectioncolor = '#ECD672'

         return
Beispiel #5
0
 def __init__(self,
              parent=None,
              model=None,
              newdict=None,
              width=None,
              height=None,
              **kwargs):
     TableCanvas.__init__(self,
                          parent=parent,
                          model=model,
                          newdict=newdict,
                          width=width,
                          height=width,
                          **kwargs)
     return
Beispiel #6
0
    def __init__(self,
                 parent=None,
                 model=None,
                 sheetname=None,
                 peat=None,
                 peatinfo=None):
        TableCanvas.__init__(self, parent, model)
        if sheetname != None:
            self.sheetname = sheetname
        if parent != None:
            self.parent = parent
        else:
            self.parent = None
        #inside peat?
        if peat != None:
            self.peatapp = peat
            self.peatinfo = peatinfo
            self.DB = peat.DB
        else:
            self.peatapp = None
            self.peatinfo = None
            self.DB = None
        self.cellbackgr = '#FFFAF0'
        self.entrybackgr = 'white'
        self.selectedcolor = 'yellow'
        self.rowselectedcolor = '#B0E0E6'
        self.multipleselectioncolor = '#ECD672'
        self.fileicons = {
            'txt': 'txticon',
            'img': 'imageicon',
            'pdf': 'pdficon',
            'other': 'blankicon',
            'zip': 'zipicon',
            'doc': 'docicon',
            'xls': 'ssheeticon'
        }
        self.columnactions['File'] = {
            "Add File": 'addFile'
        }  # , "View File" : 'displayFile' }
        self.columnactions['Table'] = {"Edit Table": 'edit_Table'}
        self.columnactions['Ekin'] = {"Open Ekin": 'open_Ekin'}

        return
 def __init__(self, parent=None, model=None, newdict=None,
                 width=None, height=None, **kwargs):
     TableCanvas.__init__(self, parent=parent, model=model, newdict=newdict,
                 width=width, height=width, **kwargs)
     return