rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
self.theSession.printMessage( 'load script file %s\n' % aFileName ) aGlobalNameMap = { 'aMainWindow' : self } execfile(aFileName, aGlobalNameMap) | self.theSession.printMessage( 'loading script file %s\n' % aFileName ) aGlobalNameMap = { 'theMainWindow' : self } execfile( aFileName, aGlobalNameMap ) | def loadScript( self, button_obj ): self.theStepperChacker = 1 aFileName = self.theScriptFileSelection.get_filename() self.theScriptFileSelection.hide() self.theSession.printMessage( 'load script file %s\n' % aFileName ) aGlobalNameMap = { 'aMainWindow' : self } execfile(aFileName, aGlobalNameMap) self.update() | 8f2a6d91b6a947b937eb5fc3b937af3797e21ac3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f2a6d91b6a947b937eb5fc3b937af3797e21ac3/MainWindow.py |
os.rename(self.theTmpSessionRecordFilename, self.thePreSessionRecordFilename) | def exit( self, obj ): mainQuit() os.rename(self.theTmpSessionRecordFilename, self.thePreSessionRecordFilename) | 8f2a6d91b6a947b937eb5fc3b937af3797e21ac3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f2a6d91b6a947b937eb5fc3b937af3797e21ac3/MainWindow.py | |
if self.theStepperChacker == 1: | if self.theStepperChecker == 1: | def toggleEntryList( self, button_obj ): | 8f2a6d91b6a947b937eb5fc3b937af3797e21ac3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f2a6d91b6a947b937eb5fc3b937af3797e21ac3/MainWindow.py |
if self.theStepperChacker == 1: | if self.theStepperChecker == 1: | def toggleEntryList( self, button_obj ): | 8f2a6d91b6a947b937eb5fc3b937af3797e21ac3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f2a6d91b6a947b937eb5fc3b937af3797e21ac3/MainWindow.py |
def openPreferences( self ) : pass def openAbout( self ) : pass | def openPreferences( self ) : pass | 8f2a6d91b6a947b937eb5fc3b937af3797e21ac3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f2a6d91b6a947b937eb5fc3b937af3797e21ac3/MainWindow.py | |
def openAbout( self ) : pass | 8f2a6d91b6a947b937eb5fc3b937af3797e21ac3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f2a6d91b6a947b937eb5fc3b937af3797e21ac3/MainWindow.py | ||
aSystemEntityList = self.getSystemEntityList() | aSystemEntityList = self.getSystemEntityList() | def getEntityList( self ): | 41afbc510926d91ffd54764a4d712ef1c91f0388 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/41afbc510926d91ffd54764a4d712ef1c91f0388/eml.py |
anEntityList = aSystemEntityList + aSubstanceOrReactorEntityList | anEntityList = aSystemEntityList + aSubstanceOrReactorEntityList | def getEntityList( self ): | 41afbc510926d91ffd54764a4d712ef1c91f0388 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/41afbc510926d91ffd54764a4d712ef1c91f0388/eml.py |
aSystem[ 'FullId' ] = str( aSystem[ 'Type' ] + ':' \ | aSystem[ 'FullId' ] = str( 'System:' \ | def getSystemEntityList( self ): | 41afbc510926d91ffd54764a4d712ef1c91f0388 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/41afbc510926d91ffd54764a4d712ef1c91f0388/eml.py |
%s -- start up E-Cell3 GUI | %s -- E-Cell3 Session Monitor | def usage(): aProgramName = 'ecell3-session-monitor' print ''' | b2da76502e502cdf4c5ab3ae499a478e80c3e682 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/b2da76502e502cdf4c5ab3ae499a478e80c3e682/opengui.py |
Do not use -e and -f at same time. | Do not use -e and -f at the same time. | def usage(): aProgramName = 'ecell3-session-monitor' print ''' | b2da76502e502cdf4c5ab3ae499a478e80c3e682 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/b2da76502e502cdf4c5ab3ae499a478e80c3e682/opengui.py |
def save( self, anOutputFile ): """save domtree as an EML file""" anEmlString = self.asString() | d50b0343bace877ec59651b7c78194472153cbce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d50b0343bace877ec59651b7c78194472153cbce/eml.py | ||
def createEntity( self, anEntityType, aClass, anId, aName ): | def createEntity( self, anEntityType, aClass, aFullId, aName ): | def createEntity( self, anEntityType, aClass, anId, aName ): """create an entity: system, substance and reactor""" | d50b0343bace877ec59651b7c78194472153cbce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d50b0343bace877ec59651b7c78194472153cbce/eml.py |
if self.checkEntityExistence( anId )[0]: print 'already exists' return 'error' | def createEntity( self, anEntityType, aClass, anId, aName ): """create an entity: system, substance and reactor""" | d50b0343bace877ec59651b7c78194472153cbce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d50b0343bace877ec59651b7c78194472153cbce/eml.py | |
anEntityElement.setAttribute( 'name', aName ) | anEntityElement.setAttribute( 'name' , aName ) | def createEntity( self, anEntityType, aClass, anId, aName ): """create an entity: system, substance and reactor""" | d50b0343bace877ec59651b7c78194472153cbce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d50b0343bace877ec59651b7c78194472153cbce/eml.py |
else: anEntityElement.setAttribute( 'id', anId.split( ':' )[2] ) aTargetFullPath = anId.split( ':' )[1] | elif( anEntityType == 'Substance' or anEntityType == 'Reactor' ): anId = aFullId.split( ':' )[2] anEntityElement.setAttribute( 'id', anId ) aTargetFullPath = aFullId.split( ':' )[1] | def createEntity( self, anEntityType, aClass, anId, aName ): """create an entity: system, substance and reactor""" | d50b0343bace877ec59651b7c78194472153cbce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d50b0343bace877ec59651b7c78194472153cbce/eml.py |
aPropertyExistence = self.checkPropertyExistence( aFullId ) if self.checkPropertyExistence( aFullId ): print 'already exists' return 'error' | aPropertyExistence = 0 | def setProperty( self, aFullId, aName, aValueList ): | d50b0343bace877ec59651b7c78194472153cbce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d50b0343bace877ec59651b7c78194472153cbce/eml.py |
def setProperty( self, aFullId, aName, aValueList ): | d50b0343bace877ec59651b7c78194472153cbce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d50b0343bace877ec59651b7c78194472153cbce/eml.py | ||
aTargetSystemFullId = aTargetSystem.getAttribute( 'id' ) | aTargetSystemId = aTargetSystem.getAttribute( 'id' ) aTargetSystemFullId = self.convertSystemId2SystemFullId( aTargetSystemId ) | def setProperty( self, aFullId, aName, aValueList ): | d50b0343bace877ec59651b7c78194472153cbce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d50b0343bace877ec59651b7c78194472153cbce/eml.py |
aTargetSystemFullId == aFullId: | aTargetSystemFullId == aFullId: | def setProperty( self, aFullId, aName, aValueList ): | d50b0343bace877ec59651b7c78194472153cbce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d50b0343bace877ec59651b7c78194472153cbce/eml.py |
def asPathToSystem( self, aFullPathOfSystem ): if( aFullPathOfSystem == '/' ): aPathToTargetSystem = ':/' | def convertSystemFullId2SystemId( self, aSystemFullId ): """ aSystemFullId : ex) System:/CELL:CYTOPLASM return -> aSystemId [string] : ex) /CELL/CYTOPLASM """ aPathToSystem = aSystemFullId.split( ':' )[1] aSystemSimpleId = aSystemFullId.split( ':' )[2] if( aSystemSimpleId == '/' ): aSystemId = '/' elif( aPathToSys... | def asPathToSystem( self, aFullPathOfSystem ): | d50b0343bace877ec59651b7c78194472153cbce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d50b0343bace877ec59651b7c78194472153cbce/eml.py |
aFullPathInfo = aFullPathOfSystem.split( '/' ) aTargetSystemId = aFullPathInfo[-1] del aFullPathInfo[-1] aPathToTargetSystemInfo = aFullPathInfo if( len( aPathToTargetSystemInfo ) == 1 ): aPathToTargetSystem = '/:' + aTargetSystemId else: aPathToTargetSystem = str( string.join( aPathToTargetSystemInfo, '/' ) + ':' + ... | aSystemId = aPathToSystem + '/' +aSystemSimpleId return aSystemId def convertSystemId2SystemFullId( self, aSystemId ): """ aSystemId : ex) /CELL/CYTOPLASM return -> aSystemFullId [string] : ex) System:/CELL:CYTOPLASM """ aSystemIdArray = aSystemId.split( '/' ) aSystemSimpleId = aSystemIdArray[-1] if ( aSystemId ... | def asPathToSystem( self, aFullPathOfSystem ): | d50b0343bace877ec59651b7c78194472153cbce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d50b0343bace877ec59651b7c78194472153cbce/eml.py |
def asSystemPath( self, aTargetSystem ): """convert fullid of system to fullpath ex.) System:/CELL:CYTOPLASM -> /CELL/CYTOPLASM """ | d50b0343bace877ec59651b7c78194472153cbce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d50b0343bace877ec59651b7c78194472153cbce/eml.py | ||
def asSystemPath( self, aTargetSystem ): """convert fullid of system to fullpath ex.) System:/CELL:CYTOPLASM -> /CELL/CYTOPLASM """ | d50b0343bace877ec59651b7c78194472153cbce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d50b0343bace877ec59651b7c78194472153cbce/eml.py | ||
aLoggerStub = LoggerStub( theSimulator, aFullPNString ) | aLoggerStub = LoggerStub( self.theSimulator, aFullPNString ) | def saveData( self, obj ): | e706cf45aba627079b4fc4b62d4ef7e44aad9211 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e706cf45aba627079b4fc4b62d4ef7e44aad9211/LoggerWindow.py |
Session.saveLoggerData( self, fullpn=0, aSaveDirectory='./Data', aStartTime=-1, anEndTime=-1, anInterval=-1 ) | Session.saveLoggerData( self, fullpn, aSaveDirectory, aStartTime, anEndTime, anInterval ) | def saveLoggerData( self, fullpn=0, aSaveDirectory='./Data', aStartTime=-1, anEndTime=-1, anInterval=-1 ): Session.saveLoggerData( self, fullpn=0, aSaveDirectory='./Data', aStartTime=-1, anEndTime=-1, anInterval=-1 ) | 0827688d722d70b4e36e23a0a23a5cd912555f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/0827688d722d70b4e36e23a0a23a5cd912555f61/GtkSessionMonitor.py |
aValue = self.__getNewUnitValue( anUnit, aValue ) return aValue | aValue = aValue * self.__getNewUnitValue( anUnit ) newValue.append( aValue ) | def convertUnit( self, aValueUnit, aValue ): | ffe2c948baa12c5aacea270245501d63d2ab21fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ffe2c948baa12c5aacea270245501d63d2ab21fd/convertSBML2EML.py |
aValue = self.__getNewUnitValue( anUnit, aValue ) return aValue def __getNewUnitValue( self, anUnit, aValue ): | aValue = aValue * self.__getNewUnitValue( anUnit ) newValue.append( aValue ) if( newValue == [] ): return aValue else: return newValue[0] def __getNewUnitValue( self, anUnit ): aValue = 1 | def convertUnit( self, aValueUnit, aValue ): | ffe2c948baa12c5aacea270245501d63d2ab21fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ffe2c948baa12c5aacea270245501d63d2ab21fd/convertSBML2EML.py |
def openWindow( self ): | ebf88a13f833d9d1b252df696157c840aed9e208 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ebf88a13f833d9d1b252df696157c840aed9e208/EntityListWindow.py | ||
pass | self['EntityPopupMenu'].prepend( aMenuItem ) | def __initializePopupMenu( self ): """Initialize popup menu Returns None [Note]:In this method, only 'PluginWindow type' menus, 'Create Logger' menu and 'Add to Board' menu are created. The menus of PluginWindow instances are appended dinamically in self.popupMenu() method. """ | ebf88a13f833d9d1b252df696157c840aed9e208 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ebf88a13f833d9d1b252df696157c840aed9e208/EntityListWindow.py |
pass | self['EntityPopupMenu'].append( aMenuItem ) | def __initializePopupMenu( self ): """Initialize popup menu Returns None [Note]:In this method, only 'PluginWindow type' menus, 'Create Logger' menu and 'Add to Board' menu are created. The menus of PluginWindow instances are appended dinamically in self.popupMenu() method. """ | ebf88a13f833d9d1b252df696157c840aed9e208 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ebf88a13f833d9d1b252df696157c840aed9e208/EntityListWindow.py |
self['EntityPopupMenu'].append( gtk.MenuItem() ) | def __initializePopupMenu( self ): """Initialize popup menu Returns None [Note]:In this method, only 'PluginWindow type' menus, 'Create Logger' menu and 'Add to Board' menu are created. The menus of PluginWindow instances are appended dinamically in self.popupMenu() method. """ | ebf88a13f833d9d1b252df696157c840aed9e208 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ebf88a13f833d9d1b252df696157c840aed9e208/EntityListWindow.py | |
self['EntityPopupMenu'].append( aMenuItem ) | def __initializePopupMenu( self ): """Initialize popup menu Returns None [Note]:In this method, only 'PluginWindow type' menus, 'Create Logger' menu and 'Add to Board' menu are created. The menus of PluginWindow instances are appended dinamically in self.popupMenu() method. """ | ebf88a13f833d9d1b252df696157c840aed9e208 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ebf88a13f833d9d1b252df696157c840aed9e208/EntityListWindow.py | |
self['EntityPopupMenu'].append( gtk.MenuItem() ) | def __initializePopupMenu( self ): """Initialize popup menu Returns None [Note]:In this method, only 'PluginWindow type' menus, 'Create Logger' menu and 'Add to Board' menu are created. The menus of PluginWindow instances are appended dinamically in self.popupMenu() method. """ | ebf88a13f833d9d1b252df696157c840aed9e208 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ebf88a13f833d9d1b252df696157c840aed9e208/EntityListWindow.py | |
self['EntityPopupMenu'].append( aMenuItem ) | def __initializePopupMenu( self ): """Initialize popup menu Returns None [Note]:In this method, only 'PluginWindow type' menus, 'Create Logger' menu and 'Add to Board' menu are created. The menus of PluginWindow instances are appended dinamically in self.popupMenu() method. """ | ebf88a13f833d9d1b252df696157c840aed9e208 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ebf88a13f833d9d1b252df696157c840aed9e208/EntityListWindow.py | |
self['EntityPopupMenu'].append( gtk.MenuItem() ) | def __initializePopupMenu( self ): """Initialize popup menu Returns None [Note]:In this method, only 'PluginWindow type' menus, 'Create Logger' menu and 'Add to Board' menu are created. The menus of PluginWindow instances are appended dinamically in self.popupMenu() method. """ | ebf88a13f833d9d1b252df696157c840aed9e208 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ebf88a13f833d9d1b252df696157c840aed9e208/EntityListWindow.py | |
def __initializePopupMenu( self ): """Initialize popup menu Returns None [Note]:In this method, only 'PluginWindow type' menus, 'Create Logger' menu and 'Add to Board' menu are created. The menus of PluginWindow instances are appended dinamically in self.popupMenu() method. """ | ebf88a13f833d9d1b252df696157c840aed9e208 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ebf88a13f833d9d1b252df696157c840aed9e208/EntityListWindow.py | ||
Window.__init__( self ) | OsogoWindow.__init__( self, 'MainWindow.glade' ) OsogoWindow.openWindow(self) | def __init__( self ): Window.__init__( self ) | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
self.theMessageWindowWindow = self.theMessageWindow[ 'message_window' ] | def __init__( self ): Window.__init__( self ) | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py | |
self.theLoggerWindowWindow = self.theLoggerWindow[ 'logger_window' ] | def __init__( self ): Window.__init__( self ) | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py | |
self.theInterfaceWindowWindow = self.theInterfaceWindow[ 'interface_window' ] self.thePluginManager = OsogoPluginManager( self.theSession, self.theLoggerWindow, self.theInterfaceWindow, self.theMessageWindow ) | self.thePluginManager = OsogoPluginManager( self.theSession, self.theLoggerWindow, self.theInterfaceWindow, self.theMessageWindow ) | def __init__( self ): Window.__init__( self ) | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
def __init__( self ): Window.__init__( self ) | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py | ||
def __init__( self ): Window.__init__( self ) | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py | ||
self.theScriptFileSelection.complete( '*.' + self.ScriptFileExtension ) | def __init__( self ): Window.__init__( self ) | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py | |
self.theRuleFileSelection.complete( '*.' + self.RuleFileExtension ) | def __init__( self ): Window.__init__( self ) | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py | |
self.theSaveFileSelection.complete( '*.' + self.CellStateFileExtension ) | def __init__( self ): Window.__init__( self ) | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py | |
def closeParentWindow( self, button_obj): aParentWindow = button_obj.get_parent_window() | self.setInitialWidgetStatus() def setInitialWidgetStatus( self ): self['start_button'].set_sensitive(0) self['stop_button'].set_sensitive(0) self['step_button'].set_sensitive(0) self['entry_list'].set_sensitive(0) self['palette_togglebutton'].set_sensitive(0) self['create_new_entry_list_menu'].set_sensitive... | def __init__( self ): Window.__init__( self ) | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
def closeParentWindow( self, button_obj): aParentWindow = button_obj.get_parent_window() aParentWindow.hide() | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py | ||
self.theStepperChecker = 1 aFileName = self.theRuleFileSelection.get_filename() self.theRuleFileSelection.hide() self.theSession.printMessage( 'loading rule file %s\n' % aFileName) aModelFile = open( aFileName ) self.theSession.loadModel( aModelFile ) aModelFile.close() self.theSession.theSimulator.initialize() self.up... | try: aFileName = self.theRuleFileSelection.get_filename() self.theRuleFileSelection.hide() self.theSession.printMessage( 'loading rule file %s\n' % aFileName) aModelFile = open( aFileName ) self.theSession.loadModel( aModelFile ) aModelFile.close() self.theSession.theSimulator.initialize() self.update() except: import ... | def loadRule( self, button_obj ) : self.theStepperChecker = 1 aFileName = self.theRuleFileSelection.get_filename() self.theRuleFileSelection.hide() self.theSession.printMessage( 'loading rule file %s\n' % aFileName) aModelFile = open( aFileName ) self.theSession.loadModel( aModelFile ) aModelFile.close() self.theSessio... | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
def loadScript( self, button_obj ): self.theStepperChecker = 1 aFileName = self.theScriptFileSelection.get_filename() self.theScriptFileSelection.hide() self.theSession.printMessage( 'loading script file %s\n' % aFileName ) aGlobalNameMap = { 'theMainWindow' : self } execfile( aFileName, aGlobalNameMap ) self.update() ... | def loadScript( self, obj ): try: aFileName = self.theScriptFileSelection.get_filename() self.theScriptFileSelection.hide() self.theSession.printMessage( 'loading script file %s\n' % aFileName ) aGlobalNameMap = { 'theMainWindow' : self } execfile( aFileName, aGlobalNameMap ) self.update() except: import sy... | def loadScript( self, button_obj ): self.theStepperChecker = 1 aFileName = self.theScriptFileSelection.get_filename() self.theScriptFileSelection.hide() self.theSession.printMessage( 'loading script file %s\n' % aFileName ) aGlobalNameMap = { 'theMainWindow' : self } execfile( aFileName, aGlobalNameMap ) self.update() | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
def saveCellState ( self, button_obj ) : | def saveCellState ( self, obj ) : | def saveCellState ( self, button_obj ) : pass | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
def saveCellState ( self, button_obj ) : pass | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py | ||
def startSimulation( self, a ) : self.theSession.theSimulator.initialize() self.theRunningFlag = 1 self.theSession.printMessage( "Start\n" ) self.theTimer = gtk.timeout_add(self.theUpdateInterval, self.updateByTimeOut, 0) self.theLoggerWindow.update() self.theSession.run() self.removeTimeOut() | def startSimulation( self, obj ) : try: self.theRunningFlag = 1 self.theSession.theSimulator.initialize() self.theSession.printMessage( "Start\n" ) self.theTimer = gtk.timeout_add(self.theUpdateInterval, self.updateByTimeOut, 0) self.theLoggerWindow.update() self.theSession.run() self.removeTimeOut() exc... | def startSimulation( self, a ) : | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
def stopSimulation( self, a ) : if self.theRunningFlag: | def stopSimulation( self, obj ) : try: if self.theRunningFlag: self.theSession.stop() self.theSession.printMessage( "Stop\n" ) self.removeTimeOut() self.update() self.theLoggerWindow.update() except: import sys import traceback aErrorMessage = traceback.format_exception(sys.exc_type,sys.exc_value,sys.exc_trace... | def stopSimulation( self, a ) : if self.theRunningFlag: self.theRunningFlag = 0 self.theSession.stop() self.theSession.printMessage( "Stop\n" ) self.removeTimeOut() self.update() self.theLoggerWindow.update() | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
self.theSession.stop() self.theSession.printMessage( "Stop\n" ) | def stepSimulation( self, obj ) : try: self.theSession.theSimulator.initialize() self.theSession.printMessage( "Step\n" ) self['step_combo_entry'].set_text( str( self.theStepSize ) ) self.theTimer = gtk.timeout_add( self.theUpdateInterval, self.updateByTimeOut, 0 ) if self.theStepType == 0: self.theSessio... | def stopSimulation( self, a ) : if self.theRunningFlag: self.theRunningFlag = 0 self.theSession.stop() self.theSession.printMessage( "Stop\n" ) self.removeTimeOut() self.update() self.theLoggerWindow.update() | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
def stepSimulation( self, a ) : self.theSession.theSimulator.initialize() self.theSession.printMessage( "Step\n" ) self['step_combo_entry'].set_text( str( self.theStepSize ) ) self.theTimer = gtk.timeout_add( self.theUpdateInterval, self.updateByTimeOut, 0 ) if self.theStepType == 0: self.theSession.run( self.theSte... | except: import sys import traceback aErrorMessage = traceback.format_exception(sys.exc_type,sys.exc_value,sys.exc_traceback) self.theMessageWindow.printMessage(aErrorMessage) else: pass | def stopSimulation( self, a ) : if self.theRunningFlag: self.theRunningFlag = 0 self.theSession.stop() self.theSession.printMessage( "Stop\n" ) self.removeTimeOut() self.update() self.theLoggerWindow.update() | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
def changeStepType ( self, a ): | def changeStepType ( self, obj ): | def changeStepType ( self, a ): self.theStepType = 1 - self.theStepType | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
def updateByTimeOut( self, a ): | def updateByTimeOut( self, obj ): | def updateByTimeOut( self, a ): self.update() self.theTimer = gtk.timeout_add( self.theUpdateInterval, self.updateByTimeOut, 0 ) | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
self.theEntryListWindowWindow = self.theEntryListWindow[ 'entry_list_window' ] | def toggleEntryList( self, button_obj ): #fix me: this part is Root System's bug. if self.theStepperChecker == 1 and self.theEntryChecker == 0: self.theEntryListWindow = EntryListWindow.EntryListWindow( self ) self.theEntryListWindowWindow = self.theEntryListWindow[ 'entry_list_window' ] self.theEntryChecker = 1 if sel... | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py | |
if button_obj.get_active() : self.theEntryListWindowWindow.show_all() self.theEntryListWindow.update() else : self.theEntryListWindowWindow.hide() | if button_obj.get_active(): if ( self.theEntryListWindow.getExist() == 0 ): self.theEntryListWindow = EntryListWindow.EntryListWindow( self ) else: self.theEntryListWindow['EntryListWindow'].show_all() else: if ( self.theEntryListWindow.getExist() == 0 ): pass else: self.theEntryListWindow[... | def toggleEntryList( self, button_obj ): #fix me: this part is Root System's bug. if self.theStepperChecker == 1 and self.theEntryChecker == 0: self.theEntryListWindow = EntryListWindow.EntryListWindow( self ) self.theEntryListWindowWindow = self.theEntryListWindow[ 'entry_list_window' ] self.theEntryChecker = 1 if sel... | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
self.theLoggerWindowWindow.show_all() self.theLoggerWindow.update() else : self.theLoggerWindowWindow.hide() | if ( self.theLoggerWindow.getExist() == 0 ): self.theLoggerWindow = LoggerWindow.LoggerWindow( self.theSession , self ) self.theLoggerWindow.update() else: self.theLoggerWindow['LoggerWindow'].show_all() else: if ( self.theLoggerWindow.getExist() == 0 ): pass else: self.theLoggerWindow['LoggerW... | def toggleLoggerWindow( self, button_obj ): | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
self.theMessageWindowWindow.show_all() else : self.theMessageWindowWindow.hide() | if ( self.theMessageWindow.getExist() == 0 ): self.theMessageWindow.openWindow() else: self.theMessageWindow['MessageWindow'].show_all() else: if ( self.theMessageWindow.getExist() == 0 ): pass else: self.theMessageWindow['MessageWindow'].hide() | def toggleMessageWindow( self, button_obj ) : | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
def openAbout( self, button_obj ): anAboutDialog = gnome.ui.GnomeAbout( NAME, VERSION, COPYRIGHT, AUTHORLIST, DESCRIPTION ) anAboutDialog.set_title( 'about osogo' ) anAboutDialog.show_all() | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py | ||
def initializePaletteWindow( self ): self.thePaletteWindow = PaletteWindow.PaletteWindow() self.thePaletteWindow.setPluginList( self.thePluginManager.thePluginMap ) | def openPreferences( self, button_obj ): aPropertyBox = gnome.ui.GnomePropertyBox() aLabel = gtk.GtkLabel( 'NOT IMPLEMENTED YET' ) aTabLabel = gtk.GtkLabel( 'warning' ) aPropertyBox.append_page( aLabel, aTabLabel ) | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py | |
if button_obj.get_active() : | if button_obj.get_active(): if self.thePaletteWindow.getExist() == 0: self.initializePaletteWindow() else: pass | def togglePaletteWindow( self, button_obj ) : if button_obj.get_active() : self.thePaletteWindow.show_all() else : self.thePaletteWindow.hide() | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
else : self.thePaletteWindow.hide() | else: if self.thePaletteWindow.getExist() == 0: pass else: self.thePaletteWindow.hide() | def togglePaletteWindow( self, button_obj ) : if button_obj.get_active() : self.thePaletteWindow.show_all() else : self.thePaletteWindow.hide() | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
self.theInterfaceWindowWindow.show_all() else : self.theInterfaceWindowWindow.hide() def saveCellStateToTheFile( self ) : pass | if ( self.theInterfaceWindow.getExist() == 0 ): self.theInterfaceWindow.openWindow() self.theInterfaceWindow.update() else: self.theInterfaceWindow['InterfaceWindow'].show_all() else: if ( self.theInterfaceWindow.getExist() == 0 ): pass else: self.theInterfaceWindow['InterfaceWindow'].hide() ... | def toggleInterfaceListWindow( self, button_obj ) : if button_obj.get_active() : self.theInterfaceWindowWindow.show_all() else : self.theInterfaceWindowWindow.hide() | e573789f2b94316412ecd7aa8c3fcc447f03df55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e573789f2b94316412ecd7aa8c3fcc447f03df55/MainWindow.py |
aPropertyValueList = [] for aChildNode in anEntityPropertyNode.childNodes: if aChildNode.tagName == 'value': aPropertyValueList.append( self.__createValueList( aChildNode ) ) return aPropertyValueList | return self.__createValueList( anEntityPropertyNode ) | def getEntityProperty( self, aFullPNString ): | 5b97543494447f4ed387bcd4d0596b59fd77855a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5b97543494447f4ed387bcd4d0596b59fd77855a/eml.py |
def __createValueList( self, aValueNode ): if aValueNode.firstChild.nodeType == minidom.Node.TEXT_NODE: | 5b97543494447f4ed387bcd4d0596b59fd77855a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5b97543494447f4ed387bcd4d0596b59fd77855a/eml.py | ||
def __createValueList( self, aValueNode ): if aValueNode.firstChild.nodeType == minidom.Node.TEXT_NODE: | 5b97543494447f4ed387bcd4d0596b59fd77855a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5b97543494447f4ed387bcd4d0596b59fd77855a/eml.py | ||
aValueList.append( self.__createValueList( aChildNode ) ) | if aChildNode.tagName == 'value': aValueList.append( self.__createValueList( aChildNode ) ) | def __createValueList( self, aValueNode ): if aValueNode.firstChild.nodeType == minidom.Node.TEXT_NODE: | 5b97543494447f4ed387bcd4d0596b59fd77855a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5b97543494447f4ed387bcd4d0596b59fd77855a/eml.py |
def __init__( self, dirname, data, pluginmanager, root=None ): OsogoPluginWindow.__init__( self, dirname, data, pluginmanager, root ) | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py | ||
'on_value_spinbutton_changed' : self.changeValue, | 'on_value_spinbutton_changed' : self.changeValue, 'input_value': self.changeValue, 'input_concentration': self.inputConcentration, | def __init__( self, dirname, data, pluginmanager, root=None ): OsogoPluginWindow.__init__( self, dirname, data, pluginmanager, root ) | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py |
self.theQtyFPN = convertFullIDToFullPN( self.theFullID(), 'Value' ) self.theConcFPN = convertFullIDToFullPN( self.theFullID(), 'Concentration' ) | self.theSession = pluginmanager.theSession | def __init__( self, dirname, data, pluginmanager, root=None ): OsogoPluginWindow.__init__( self, dirname, data, pluginmanager, root ) | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py |
self["id_label"].set_text( aFullIDString ) self.theSession = pluginmanager.theSession self.theValueChangedByTextField = FALSE | self.theStub = self.theSession.createEntityStub( aFullIDString ) self["id_label"].set_text( self.theStub.getName() ) | def __init__( self, dirname, data, pluginmanager, root=None ): OsogoPluginWindow.__init__( self, dirname, data, pluginmanager, root ) | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py |
self.theQtyValue = self.getValue( self.theQtyFPN ) self.theConcValue = self.getValue( self.theConcFPN ) | self.theValue = self.theStub.getProperty( 'Value' ) self.theConcValue = self.theStub.getProperty( 'Concentration' ) self.theIsFixed = self.theStub.getProperty( 'Fixed' ) | def update( self ): | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py |
if self.theValueChangedByTextField == FALSE: self['value_spinbutton'].set_text( str( self.theQtyValue ) ) | self['value_spinbutton'].set_text( str( self.theValue ) ) | def update( self ): | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py |
self.theValueChangedByTextField == FALSE | def update( self ): | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py | |
self.theFixFlag = 1 - self.theFixFlag if self.theFixFlag == 0: self.theSession.message( "not fixed" ) else: self.theSession.message( "fixed" ) | self.theFixFlag = not self.theFixFlag self.theStub.setProperty( 'Fixed', self.theFixFlag ) | def fix_mode( self, a ) : self.theFixFlag = 1 - self.theFixFlag if self.theFixFlag == 0: self.theSession.message( "not fixed" ) else: self.theSession.message( "fixed" ) | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py |
#def inputValue( self, obj ): | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py | ||
self.theQtyValue = string.atof( aText ) self.theValueChangedByTextField = TRUE self.setValue( self.theQtyFPN, self.theQtyValue ) | self.theValue = string.atof( aText ) self.theStub.setProperty( 'Value', self.theValue ) | def changeValue( self, obj ): | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py |
self.setValue( self.theConcFPN, self.theConcValue ) | self.theStub.setProperty( 'Concentration', self.theConcValue ) | def inputConcentration( self, obj ): self.theConcValue = string.atof( obj.get_text() ) self.setValue( self.theConcFPN, self.theConcValue ) | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py |
if self.getValue( self.theQtyFPN ): self.theQtyValue *= 2.0 | if self.theStub.getProperty( 'Value' ): self.theValue *= 2.0 | def increaseValue( self, button_object ): | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py |
self.theQtyValue = 1.0 | self.theValue = 1.0 | def increaseValue( self, button_object ): | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py |
self.setValue( self.theQtyFPN, self.theQtyValue ) | self.theStub.setProperty( 'Value', self.theValue ) | def increaseValue( self, button_object ): | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py |
self.theQtyValue *= 0.5 self.setValue( self.theQtyFPN, self.theQtyValue ) | self.theValue *= 0.5 self.setProperty( 'Value', self.theValue ) self.thePluginManager.updateAllPluginWindow() | def decreaseValue( self, button_object ): | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py |
self.setValue( self.theConcFPN, self.theConcValue ) | self.setProperty( 'Concentration', self.theConcValue ) | def increaseConcentration( self, button_object ): | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py |
self.setValue( self.theConcFPN, self.theConcValue ) | self.setProperty( 'Concentration', self.theConcValue ) | def decreaseConcentration( self, button_object ): | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py |
def saveCellState ( self, button_obj ) : pass | def saveCellState ( self, button_obj ) : pass | def saveCellState ( self, button_obj ) : pass | 8e43e667d20479a74d339ae75b95e34e659757a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8e43e667d20479a74d339ae75b95e34e659757a6/MainWindow.py |
self.theRunningFlag = 1 self.theSession.printMessage( "Start\n" ) self.theTimer = gtk.timeout_add(self.theUpdateInterval, self.updateByTimeOut, 0) self.theLoggerWindow.update() self.theSession.run() self.removeTimeOut() | if self.theLoadModelChecker == 1: self.theRunningFlag = 1 self.theSession.printMessage( "Start\n" ) self.theTimer = gtk.timeout_add(self.theUpdateInterval, self.updateByTimeOut, 0) self.theLoggerWindow.update() self.theSession.run() self.removeTimeOut() | def startSimulation( self, a ) : self.theRunningFlag = 1 self.theSession.printMessage( "Start\n" ) self.theTimer = gtk.timeout_add(self.theUpdateInterval, self.updateByTimeOut, 0) self.theLoggerWindow.update() self.theSession.run() self.removeTimeOut() | 8e43e667d20479a74d339ae75b95e34e659757a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8e43e667d20479a74d339ae75b95e34e659757a6/MainWindow.py |
if self.theRunningFlag: self.theRunningFlag = 0 self.theSession.stop() self.theSession.printMessage( "Stop\n" ) | if self.theLoadModelChecker == 1: if self.theRunningFlag: self.theRunningFlag = 0 self.theSession.stop() self.theSession.printMessage( "Stop\n" ) self.removeTimeOut() self.update() self.theLoggerWindow.update() def stepSimulation( self, a ) : if self.theLoadModelChecker == 1: self.theSession.printMessage( "Step\n" ) s... | def stopSimulation( self, a ) : if self.theRunningFlag: self.theRunningFlag = 0 self.theSession.stop() self.theSession.printMessage( "Stop\n" ) self.removeTimeOut() self.update() self.theLoggerWindow.update() | 8e43e667d20479a74d339ae75b95e34e659757a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8e43e667d20479a74d339ae75b95e34e659757a6/MainWindow.py |
def stepSimulation( self, a ) : self.theSession.printMessage( "Step\n" ) self['step_combo_entry'].set_text( str( self.theStepSize ) ) self.theTimer = gtk.timeout_add( self.theUpdateInterval, self.updateByTimeOut, 0 ) if self.theStepType == 0: self.theSession.run( self.theStepSize ) else: self.theSession.step( self.the... | def stopSimulation( self, a ) : if self.theRunningFlag: self.theRunningFlag = 0 self.theSession.stop() self.theSession.printMessage( "Stop\n" ) self.removeTimeOut() self.update() self.theLoggerWindow.update() | 8e43e667d20479a74d339ae75b95e34e659757a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8e43e667d20479a74d339ae75b95e34e659757a6/MainWindow.py | |
if self.theStepperChecker == 1: | if self.theStepperChecker == 1 and self.theEntryChecker == 0: | def toggleEntryList( self, button_obj ): | 8e43e667d20479a74d339ae75b95e34e659757a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8e43e667d20479a74d339ae75b95e34e659757a6/MainWindow.py |
else: pass if self.theStepperChecker == 1: | self.theEntryChecker = 1 if self.theEntryChecker == 1: | def toggleEntryList( self, button_obj ): | 8e43e667d20479a74d339ae75b95e34e659757a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8e43e667d20479a74d339ae75b95e34e659757a6/MainWindow.py |
anAttribute = self.theSimulator.getStepperPropertyAttributes( aStepper, aProperty) | anAttributeList = self.theSimulator.getStepperPropertyAttributes( aStepper, aProperty) | def __saveStepper( self , anEml ): """stepper loader""" | 1f2e57fcdcd8feb5954a80e9c7fd9ef6f5107f67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/1f2e57fcdcd8feb5954a80e9c7fd9ef6f5107f67/Session.py |
if anAttribute[3] != 0: pass else: | if anAttributeList[3] != 0: | def __saveStepper( self , anEml ): """stepper loader""" | 1f2e57fcdcd8feb5954a80e9c7fd9ef6f5107f67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/1f2e57fcdcd8feb5954a80e9c7fd9ef6f5107f67/Session.py |
anAttribute = self.theSimulator.getEntityPropertyAttributes(aFullPN) | anAttributeList = self.theSimulator.getEntityPropertyAttributes(aFullPN) | def __savePropertyList( self, anEml, anEntityTypeString,\ aSystemPath, anIDList ): | 1f2e57fcdcd8feb5954a80e9c7fd9ef6f5107f67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/1f2e57fcdcd8feb5954a80e9c7fd9ef6f5107f67/Session.py |
if anAttribute[3] != 0: | if anAttributeList[3] != 0: | def __savePropertyList( self, anEml, anEntityTypeString,\ aSystemPath, anIDList ): | 1f2e57fcdcd8feb5954a80e9c7fd9ef6f5107f67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/1f2e57fcdcd8feb5954a80e9c7fd9ef6f5107f67/Session.py |
aValue = self.theSimulator.getEntityProperty(aFullPN) | aValue = self.theSimulator.saveEntityProperty(aFullPN) | def __savePropertyList( self, anEml, anEntityTypeString,\ aSystemPath, anIDList ): | 1f2e57fcdcd8feb5954a80e9c7fd9ef6f5107f67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/1f2e57fcdcd8feb5954a80e9c7fd9ef6f5107f67/Session.py |
self.message( "Zero step value overridden to 1\n" ) | def step( self, num = None ): """ step according to num, if num is not given, according to set step parameters """ if self.theRunningFlag == 1: return | ef0ac0d72b622a6dbcfbb4a91a0affde55b98851 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ef0ac0d72b622a6dbcfbb4a91a0affde55b98851/GtkSessionMonitor.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.