def OnNodeName(self, cmdEvent): if self.vwr is None: return node = self.NodeName.GetValue() self.vwr.gotoNode(node, HV_ANIMATE) # Simulate picking the node as well. hv.selectCB(node, 0, 0); self.SelectedNode(node) self.DrawGL() pass
def OnNodeName(self, cmdEvent): if self.vwr is None: return node = self.NodeName.GetValue() self.vwr.gotoNode(node, HV_ANIMATE) # Simulate picking the node as well. hv.selectCB(node, 0, 0) self.SelectedNode(node) 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
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