Exemplo n.º 1
0
 def on_show_logs(self, _widget):
     """Display game log"""
     return LogWindow(
         title="Log for {}".format(self.game),
         buffer=self.game.log_buffer,
         application=self.application
     )
Exemplo n.º 2
0
 def on_show_logs(self, _widget):
     """Display game log"""
     _buffer = LOG_BUFFERS.get(self.game.id)
     if not _buffer:
         logger.info("No log for game %s", self.game)
     return LogWindow(title=_("Log for {}").format(self.game),
                      buffer=_buffer,
                      application=self.application)