code: def trigger(self):
          
          if self.last_button:
              button_index = min(self.last_button, len(self.callbacks)) - 1
              click_style = 0 if self.clicks == 1 else 1
              callback = self.callbacks[button_index][click_style]
              if callback:
                  # we can do test for str as only python > 3 is supported
                  if isinstance(callback, str):
                      # no parameters
                      callback_name = callback
                      callback_args = []
                  else:
                      # has parameters
                      callback_name = callback[0]
                      callback_args = callback[1:]
                  callback_function = getattr(self.parent.module, callback_name)
                  callback_function(*callback_args)
                  # We want to ensure that the module has the latest output.  The
                  # best way is to call the run method of the module
                  self.parent.module.run()
              else:
                  self.parent.py3.prevent_refresh()
          self.last_button = None
          self.clicks = 0
docs: Actually trigger the event