Пример #1
0
    ## saving node CPK ##
    from MolKit.VisionInterface.MolKitNodes import AtomsAsCPK
    node3 = AtomsAsCPK(constrkw={}, name='CPK', library=molkitlib)
    masterNet.addNode(node3, 85, 250)
    widget = node3.inputPorts[4].widget
    widget.set(8, 0)
except:
    print "WARNING: failed to restore node AtomsAsCPK called CPK in network masterNet"
    print_exc()
    node3 = None
try:

    ## saving node Viewer ##
    from DejaVu.VisionInterface.DejaVuNodes import Viewer
    node4 = Viewer(constrkw={}, name='Viewer', library=vizlib)
    masterNet.addNode(node4, 451, 226)
except:
    print "WARNING: failed to restore node Viewer called Viewer in network masterNet"
    print_exc()
    node4 = None
try:

    ## saving node Extract Atom Property ##
    from MolKit.VisionInterface.MolKitNodes import AtomsProperty
    node5 = AtomsProperty(constrkw={},
                          name='Extract Atom Property',
                          library=vizlib)
    masterNet.addNode(node5, 319, 52)
    widget = node5.inputPorts[1].widget
    widget.set("number", 0)
Пример #2
0
 def beforeRemovingFromNetwork(self):
     self.vi.RemovePickingCallback(self.handlePick)
     Viewer.beforeRemovingFromNetwork(self)
     pass
Пример #3
0
 def beforeRemovingFromNetwork(self):
     self.vi.RemovePickingCallback(self.handlePick)
     Viewer.beforeRemovingFromNetwork(self)
     pass
Пример #4
0
 def beforeAddingToNetwork(self, net):
     Viewer.beforeAddingToNetwork(self, net)
     # loading library vizlib
     importVizLib(net)
Пример #5
0
 def beforeAddingToNetwork(self, net):
     Viewer.beforeAddingToNetwork(self, net)
     # loading library vizlib
     importVizLib(net)