parameters: (self)
docstring: Execute when clicking the OK button or Enter key.
docstring_summary: Execute when clicking the OK button or Enter key.
docstring_tokens: Execute when clicking the OK button or Enter key .
function: def accept(self):
          """Execute when clicking the OK button or Enter key."""
          self.selection = Gui.Selection.getSelection()
  
          (self.number,
           self.angle) = self.get_number_angle()
  
          self.center = self.get_center()
  
          self.valid_input = self.validate_input(self.selection,
                                                 self.number,
                                                 self.angle,
                                                 self.center)
          if self.valid_input:
              self.create_object()
              # The internal function already displays messages
              # self.print_messages()
              self.finish()
function_tokens: def accept ( self ) : self . selection = Gui . Selection . getSelection ( ) ( self . number , self . angle ) = self . get_number_angle ( ) self . center = self . get_center ( ) self . valid_input = self . validate_input ( self . selection , self . number , self . angle , self . center ) if self . valid_input : self . create_object ( ) # The internal function already displays messages # self.print_messages() self . finish ( )