parameters: (self, extra=None, on_close_call=None)
docstring: create a dumb taskdialog to prevent deleting the temp object
docstring_summary: create a dumb taskdialog to prevent deleting the temp object
docstring_tokens: create a dumb taskdialog to prevent deleting the temp object
function: def makeDumbTask(self, extra=None, on_close_call=None):
          """create a dumb taskdialog to prevent deleting the temp object"""
          class TaskPanel:
              def __init__(self, extra=None, callback=None):
                  if extra:
                      self.form = [extra]
                  self.callback = callback
              def getStandardButtons(self):
                  return int(QtGui.QDialogButtonBox.Close)
              def reject(self):
                  if self.callback:
                      self.callback()
                  return True
          FreeCADGui.Control.closeDialog()
          panel = TaskPanel(extra, on_close_call)
          FreeCADGui.Control.showDialog(panel)
function_tokens: def makeDumbTask ( self , extra = None , on_close_call = None ) : class TaskPanel : def __init__ ( self , extra = None , callback = None ) : if extra : self . form = [ extra ] self . callback = callback def getStandardButtons ( self ) : return int ( QtGui . QDialogButtonBox . Close ) def reject ( self ) : if self . callback : self . callback ( ) return True FreeCADGui . Control . closeDialog ( ) panel = TaskPanel ( extra , on_close_call ) FreeCADGui . Control . showDialog ( panel )