- Timestamp:
- 04/27/08 16:35:09 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/branches/jsnyder/ComponentProject/PythonSrc/MainFrameGlue.py
r7294 r7300 2 2 import wavedev.importResource 3 3 import wavedev.importNode 4 import wavedev.WaveformClass 4 5 from wavedev.WaveformClass import Waveform 5 6 import wavedev.PlatformClass … … 8 9 import cPickle 9 10 from edu.vt.ossie.jyinterface.interfaces import MainFrame 11 import traceback 12 13 14 #def newUuidgen(): 15 # result = commands.getoutput('uuidgen -t') 16 # # On some linux-like OSes, uuidgen does not take any parameter to specify 17 # # the kind of uuid to generate 18 # if (result.find('usage:') >= 0): 19 # result = commands.getoutput('uuidgen') 20 # return result 21 22 # try: 23 # setattr(wavedev.ComponentClass, 'uuidgen', newUuidgen) 24 # except: 25 # traceback.print_exc() 10 26 11 27 class MainFrameTreeNode: … … 74 90 if os.path.isdir(self.installPath + 'nodes'): 75 91 nodeList = os.listdir(self.installPath + 'nodes') 76 print nodeList92 # print nodeList 77 93 else: 78 94 errorMsg(self, "No nodes could be found in: " + self.installPath) … … 99 115 nodePath = self.installPath + 'nodes/' + nodeName + '/' 100 116 101 print "calling getNode(", nodePath, ",", nodeName, ")"117 # print "calling getNode(", nodePath, ",", nodeName, ")" 102 118 tmpNode = wavedev.importNode.getNode(nodePath,nodeName,self) 103 119 … … 112 128 113 129 def getActiveWaveform(self): 114 return [MainFrameTreeNode("Components", self.active_waveform)]130 return self.active_waveform 115 131 116 132 def getActivePlatform(self): … … 206 222 self.active_waveform = tmpObject[1] 207 223 self.active_platform = tmpObject[2] 208 224 225 209 226 def addComponentToActiveWaveform(self, newComponent): 210 227 self.active_waveform.nodes.append(newComponent) 211 212 228 229 230 def dump(self, x): 231 from Utilities import dumpObj 232 dumpObj(x) 233