Changeset 10849 for ossiedev/trunk/tools/wavedash/src/WavedashView.py
- Timestamp:
- 08/22/11 11:23:00 (21 months ago)
- Files:
-
- 1 modified
-
ossiedev/trunk/tools/wavedash/src/WavedashView.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/trunk/tools/wavedash/src/WavedashView.py
r10633 r10849 605 605 preVal = prpRef.getValue() 606 606 607 607 608 608 if curVal is not None: 609 609 … … 621 621 #print "configuring: wName = " + str(wName) + ", comp = " + str(comp) + ", prp = " + str(prp) + ", curVal = " + str(curVal) 622 622 status = self.model.configure(wName, comp, prp, curVal) 623 623 624 624 #leave the text box as it is if status is True 625 625 #if the configure operation failed, revert the text value to the value stored in … … 1107 1107 cPanelList = wPanel.GetChildren() 1108 1108 wformRef = self.model.getWaveform(wPanel.GetName(), WaveformModel.INSTANCE_WAVEFORM) 1109 print wformRef 1109 1110 for cPanel in cPanelList: 1110 1111 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() 1113 1115 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())) 1121 1123 1122 1124 if (self.model.getActiveWaveform() is None):