parameters: (self)
docstring: Adds primary key or unique constraint
docstring_summary: Adds primary key or unique constraint
docstring_tokens: Adds primary key or unique constraint
function: def addConstraint(self):
          """Adds primary key or unique constraint """
  
          dlg = DlgCreateConstraint(self, self.table)
          if not dlg.exec_():
              return
          self.refresh()
function_tokens: def addConstraint ( self ) : dlg = DlgCreateConstraint ( self , self . table ) if not dlg . exec_ ( ) : return self . refresh ( )