Пример #1
0
    def OnDescendLinksOut(self, cmdEvent):
	node = self.currNode
	if node is None:
	    node = hv.getGraphCenter()
        linksOut = self.vwr.getOutgoingCount(node)
	descend = self.DescendLinksOut.IsChecked()
	self.ShowLinksOut.Enable(descend or linksOut > 0)
	self.HideLinksOut.Enable(descend or linksOut > 0)
	self.DescendLinksIn.Enable(True)
	pass
Пример #2
0
 def OnDescendLinksOut(self, cmdEvent):
     node = self.currNode
     if node is None:
         node = hv.getGraphCenter()
     linksOut = self.vwr.getOutgoingCount(node)
     descend = self.DescendLinksOut.IsChecked()
     self.ShowLinksOut.Enable(descend or linksOut > 0)
     self.HideLinksOut.Enable(descend or linksOut > 0)
     self.DescendLinksIn.Enable(True)
     pass
Пример #3
0
    def OnGoToTop(self, buttonEvent):
	if self.vwr is None:
	    return

	# Tell the HypView to reset.
	self.vwr.gotoCenterNode(HV_ANIMATE)

	# Simulate picking the top node.
	##ctr = self.vwr.getGraphCenter()
	ctr = hv.getGraphCenter()
	##print "center node", ctr
	hv.selectCB(ctr, 0, 0);

	# Update the node info and draw.
	self.SelectedNode(ctr)
	self.DrawGL()
	pass
Пример #4
0
    def OnGoToTop(self, buttonEvent):
        if self.vwr is None:
            return

        # Tell the HypView to reset.
        self.vwr.gotoCenterNode(HV_ANIMATE)

        # Simulate picking the top node.
        ##ctr = self.vwr.getGraphCenter()
        ctr = hv.getGraphCenter()
        ##print "center node", ctr
        hv.selectCB(ctr, 0, 0)

        # Update the node info and draw.
        self.SelectedNode(ctr)
        self.DrawGL()
        pass