Exemple #1
0
 def __init__(self, context, quality="medium"):
     self.handler = get_handler(context)
     self.image_fetcher = context.services["imagefetcher"].handler
     self.images = {}
     self.quality = quality
Exemple #2
0
    def __init__(self, game_name, context):
        super().__init__([])
        self.game_name = game_name
        self.handler = get_handler(context)

        context.timer_handler.register(seconds(300), self.update, True)