code: def on_click(self, event):
          
          if not self.notification:
              return
  
          if self.charging:
              format = self.format_notify_charging
          else:
              format = self.format_notify_discharging
  
          message = self.py3.safe_format(
              format,
              dict(
                  ascii_bar=self.ascii_bar,
                  icon=self.icon,
                  percent=self.percent_charged,
                  time_remaining=self.time_remaining,
              ),
          )
  
          if message:
              self.py3.notify_user(message, "info")
docs: Display a notification following the specified format