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
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
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