Show
Ignore:
Timestamp:
08/22/11 11:23:00 (21 months ago)
Author:
Snyder.Jason
Message:

bug fix

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/trunk/tools/wavedash/src/WavedashView.py

    r10633 r10849  
    605605        preVal = prpRef.getValue() 
    606606         
    607       
     607 
    608608        if curVal is not None: 
    609609             
     
    621621                #print "configuring: wName = " + str(wName) + ", comp = " + str(comp) + ", prp = " + str(prp) + ", curVal = " + str(curVal) 
    622622                status = self.model.configure(wName, comp, prp, curVal) 
    623                  
     623 
    624624                #leave the text box as it is if status is True 
    625625                #if the configure operation failed, revert the text value to the value stored in  
     
    11071107            cPanelList = wPanel.GetChildren() 
    11081108            wformRef = self.model.getWaveform(wPanel.GetName(), WaveformModel.INSTANCE_WAVEFORM) 
     1109            print wformRef 
    11091110            for cPanel in cPanelList: 
    11101111                compRef = wformRef.getComponent(cPanel.GetName()) 
    1111                 prpList = compRef.getAllProperties() 
    1112                 prpWidgetList = cPanel.GetChildren() 
     1112                if compRef is not None: 
     1113                    prpList = compRef.getAllProperties() 
     1114                    prpWidgetList = cPanel.GetChildren() 
    11131115                 
    1114                 for prpW in prpWidgetList: 
    1115                     if type(prpW) is wx.TextCtrl:  
    1116                         prpW.SetValue(str(compRef.findPropertyByName(prpW.GetName()).getValue())) 
    1117                     elif type(prpW) is wx.SpinCtrl: 
    1118                         prpW.SetValue(int(compRef.findPropertyByName(prpW.GetName()).getValue())) 
    1119                     elif type(prpW) is wx.Slider: 
    1120                         prpW.SetValue(int(compRef.findPropertyByName(prpW.GetName()).getValue())) 
     1116                    for prpW in prpWidgetList: 
     1117                        if type(prpW) is wx.TextCtrl:  
     1118                            prpW.SetValue(str(compRef.findPropertyByName(prpW.GetName()).getValue())) 
     1119                        elif type(prpW) is wx.SpinCtrl: 
     1120                            prpW.SetValue(int(compRef.findPropertyByName(prpW.GetName()).getValue())) 
     1121                        elif type(prpW) is wx.Slider: 
     1122                            prpW.SetValue(int(compRef.findPropertyByName(prpW.GetName()).getValue())) 
    11211123             
    11221124        if (self.model.getActiveWaveform() is None):