~brad-fie/mdag/devel

« back to all changes in this revision

Viewing changes to mDAG/Nodes/Standard/Null.py

  • Committer: Bradley Friedman
  • Date: 2010-07-03 23:43:06 UTC
  • Revision ID: leith@worm.local-20100703234306-sx09rdqywp0s22tj
initial code dump

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import mDAG.Document
 
2
 
 
3
 
 
4
class NullNode(mDAG.Document.Node):
 
5
    
 
6
    def __init__(self, doc, xpos, ypos, name):
 
7
        mDAG.Document.Node.__init__(self, doc, xpos, ypos, name)
 
8
        self.AddInputPort("in","variant",True)
 
9
        self.AddOutputPort("out","variant")        
 
10
        
 
11
    def CanConnect(self,myinport, otheroutport):
 
12
        if not mDAG.Document.Node.CanConnect(self,myinport,otheroutport):
 
13
            return False
 
14
        return True
 
15