PEATDB/Ekin/ModelDesign.py
def updateGuessEntryWidgets(self, model):
        """Update guess entry widget, special case as guess vals are in
             a dict"""
        for v in self.guessentrywidgets.keys()[:]:
            w = self.guessentrywidgets[v]
            del self.guessentrywidgets[v]
            w.forget()

        if not model.has_key('guess') or not type(model) is types.DictType:
            model['guess'] = {}
        fr = self.guessentry.interior()
        varnames = model['varnames'].split(',')
        for v in varnames:
            w = self.guessentrywidgets[v] = Pmw.EntryField(fr,
                labelpos = 'w',
                label_text = v,
                hull_width=400)
            if type(model['guess']) is types.StringType:
                model['guess'] = eval(model['guess'])
            if v in model['guess']:
                w.setvalue(model['guess'][v])
            w.pack(fill=BOTH,side=TOP,expand=1,pady=2)
        return
Update guess entry widget, special case as guess vals are in
             a dict
Update guess entry widget, special case as guess vals are in
a dict
Update guess entry widget special case as guess vals are in a dict
def updateGuessEntryWidgets(self, model):
        for v in self.guessentrywidgets.keys()[:]:
            w = self.guessentrywidgets[v]
            del self.guessentrywidgets[v]
            w.forget()
        if not model.has_key('guess') or not type(model) is types.DictType:
            model['guess'] = {}
        fr = self.guessentry.interior()
        varnames = model['varnames'].split(',')
        for v in varnames:
            w = self.guessentrywidgets[v] = Pmw.EntryField(fr,
                labelpos = 'w',
                label_text = v,
                hull_width=400)
            if type(model['guess']) is types.StringType:
                model['guess'] = eval(model['guess'])
            if v in model['guess']:
                w.setvalue(model['guess'][v])
            w.pack(fill=BOTH,side=TOP,expand=1,pady=2)
        return
def updateGuessEntryWidgets ( self , model ) : for v in self . guessentrywidgets . keys ( ) [ : ] : w = self . guessentrywidgets [ v ] del self . guessentrywidgets [ v ] w . forget ( ) if not model . has_key ( 'guess' ) or not type ( model ) is types . DictType : model [ 'guess' ] = { } fr = self . guessentry . interior ( ) varnames = model [ 'varnames' ] . split ( ',' ) for v in varnames : w = self . guessentrywidgets [ v ] = Pmw . EntryField ( fr , labelpos = 'w' , label_text = v , hull_width = 400 ) if type ( model [ 'guess' ] ) is types . StringType : model [ 'guess' ] = eval ( model [ 'guess' ] ) if v in model [ 'guess' ] : w . setvalue ( model [ 'guess' ] [ v ] ) w . pack ( fill = BOTH , side = TOP , expand = 1 , pady = 2 ) return
Update guess entry widget, special case as guess vals are in
a dict
Update guess entry widget special case as guess vals are in a dict
"""Update guess entry widget, special case as guess vals are in
             a dict"""
self
model