PEATDB/plugins/titranalysis.py
def selectfromDB(self):
        """Get an ekin prj from the DB"""
        if self.DB == None:
            return
        from PEATDB.Actions import DBActions
        fr=Toplevel()
        rbox, cbox = DBActions.getRecordsSelector(self.DB,fr)
        def loadselected():
            item = rbox.curselection()[0]
            rec = self.DB.getRecs()[int(item)]
            item = cbox.curselection()[0]
            col = self.DB.getFields()[int(item)]
            E=self.DB[rec][col]
            self.loadEkinProj(E)
            fr.destroy()
        Button(fr, text='OK',
                command=loadselected).grid(row=3,column=0,
                columnspan=2,sticky='news',padx=1,pady=3)
        return
Get an ekin prj from the DB
Get an ekin prj from the DB
Get an ekin prj from the DB
def selectfromDB(self):
        if self.DB == None:
            return
        from PEATDB.Actions import DBActions
        fr=Toplevel()
        rbox, cbox = DBActions.getRecordsSelector(self.DB,fr)
        def loadselected():
            item = rbox.curselection()[0]
            rec = self.DB.getRecs()[int(item)]
            item = cbox.curselection()[0]
            col = self.DB.getFields()[int(item)]
            E=self.DB[rec][col]
            self.loadEkinProj(E)
            fr.destroy()
        Button(fr, text='OK',
                command=loadselected).grid(row=3,column=0,
                columnspan=2,sticky='news',padx=1,pady=3)
        return
def selectfromDB ( self ) : if self . DB == None : return from PEATDB . Actions import DBActions fr = Toplevel ( ) rbox , cbox = DBActions . getRecordsSelector ( self . DB , fr ) def loadselected ( ) : item = rbox . curselection ( ) [ 0 ] rec = self . DB . getRecs ( ) [ int ( item ) ] item = cbox . curselection ( ) [ 0 ] col = self . DB . getFields ( ) [ int ( item ) ] E = self . DB [ rec ] [ col ] self . loadEkinProj ( E ) fr . destroy ( ) Button ( fr , text = 'OK' , command = loadselected ) . grid ( row = 3 , column = 0 , columnspan = 2 , sticky = 'news' , padx = 1 , pady = 3 ) return
Get an ekin prj from the DB
Get an ekin prj from the DB
"""Get an ekin prj from the DB"""
self