def connector(aBool=None): graphview = self.tabWorkspace.currentWidget() if not isinstance(graphview, dataflowview.DataflowView): return # daniel was here: now the menu is built using the graph operator. operator = GraphOperator(graph=graphview.scene().get_graph(), graphScene=graphview.scene(), clipboard=self.session.clipboard, siblings=self.session.workspaces) operator.register_listener(self) operator(fName=name)()