def METHOD_NAME(self,vp,mode):
    panel = TaskHole(self.Object)
    FreeCADGui.Control.showDialog(panel)
    if not panel.setupUi():
        FreeCADGui.Control.closeDialog(panel)
        return False
    return True