Пример #1
0
    def picDiagrama(self):
        saida = StringIO()
        with stdout_redirected(saida):
            print '.PS'
            print 'copy "%s";'% (caminho(PicSequencia) + '/sequencia.pic')
            print 'boxwid = 0;'
            print 'boxht = 0;'
            print 'underline = 0;'
            print 'spacing = 0.6;'

            for raia in self._raias:
                print "placeholder_object(%sDummy);"%raia.objetoId() # mais espaco
                print "placeholder_object(%sDummyy);"%raia.objetoId() # mais espaco
                print "placeholder_object(%sDummyyy);"%raia.objetoId() # mais espaco
                print raia.inicializeRaia()
            print 'step();'

            for passo in self._sequencia:
                print str(passo)

            for raia in self._raias:
                print 'complete(%s);' %(raia.objetoId())

            print '.PE',
        return saida.getvalue()
Пример #2
0
 def caminho(self, obj=None):
     return caminho(obj or self._frame)