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