PEATDB/Ekin/ModelDesign.py
def loadModel(self, sel=None):
        """Load a model from the current dict"""

        #add confirmation dialog here
        if sel == None:
            self.currentname = sel = self.modelselector.getcurselection()[0]
        self.currentmodel = model = self.modelsdict[sel]
        for f in model:
            if f in self.entrywidgets:
                self.entrywidgets[f].settext(model[f])
        self.updateGuessEntryWidgets(model)
        self.previewer.replot()
        self.currmodelvar.set(self.currentname)
        return
Load a model from the current dict
Load a model from the current dict
Load a model from the current dict
def loadModel(self, sel=None):
        if sel == None:
            self.currentname = sel = self.modelselector.getcurselection()[0]
        self.currentmodel = model = self.modelsdict[sel]
        for f in model:
            if f in self.entrywidgets:
                self.entrywidgets[f].settext(model[f])
        self.updateGuessEntryWidgets(model)
        self.previewer.replot()
        self.currmodelvar.set(self.currentname)
        return
def loadModel ( self , sel = None ) : if sel == None : self . currentname = sel = self . modelselector . getcurselection ( ) [ 0 ] self . currentmodel = model = self . modelsdict [ sel ] for f in model : if f in self . entrywidgets : self . entrywidgets [ f ] . settext ( model [ f ] ) self . updateGuessEntryWidgets ( model ) self . previewer . replot ( ) self . currmodelvar . set ( self . currentname ) return
Load a model from the current dict
Load a model from the current dict
"""Load a model from the current dict""" #add confirmation dialog here
self
sel