Exemplo n.º 1
0
    def testClose( self): 
        '''
        '''
        print "testGraphics.testClose"

        PySpectra.cls()
        PySpectra.delete()
        PySpectra.setTitle( "testing close()")

        sinus = PySpectra.Scan( name = 'sinus', 
                                xMin = 0., xMax = 6.0, nPts = 101, lineColor = 'red', doty = True)
        sinus.y = np.sin( sinus.y)

        PySpectra.display()
        PySpectra.processEventsLoop( 1)

        PySpectra.close()

        PySpectra.cls()
        PySpectra.delete()
        PySpectra.setTitle( "testing close(), again")

        sinus = PySpectra.Scan( name = 'sinus', 
                                xMin = 0., xMax = 6.0, nPts = 101, lineColor = 'red', doty = True)
        sinus.y = np.sin( sinus.y)

        PySpectra.display()
        PySpectra.processEventsLoop( 1)

        print "testGraphics.testClose, DONE"
Exemplo n.º 2
0
def close():

    if spectraInstalled and useSpectra:
        argout = True
    else:
        argout = PySpectra.close()
    return
Exemplo n.º 3
0
 def tearDownClass(testExamples):
     PySpectra.close()
Exemplo n.º 4
0
 def tearDownClass( testSpock): 
     PySpectra.close()
Exemplo n.º 5
0
 def tearDownClass(testUtils):
     PySpectra.close()
Exemplo n.º 6
0
 def tearDownClass( testGraphics): 
     PySpectra.close()
Exemplo n.º 7
0
 def tearDownClass(testZmqIfc):
     if wasLaunched:
         PySpectra.killPyspMonitor()
     PySpectra.close()
Exemplo n.º 8
0
 def tearDownClass(testTangoIfc):
     PySpectra.close()
Exemplo n.º 9
0
 def tearDownClass(testIFC):
     PySpectra.close()
Exemplo n.º 10
0
 def tearDownClass(testGQE):
     PySpectra.close()
Exemplo n.º 11
0
 def tearDownClass( testCalc): 
     PySpectra.close()