Beispiel #1
0
    def do_stream_logo(self):
        image = image_from_path(path='images/acestream.svg', size=16)
        image.set_halign(Gtk.Align.CENTER)
        image.set_valign(Gtk.Align.CENTER)
        image.set_margin_right(10)

        add_widget_class(image, 'stream-image')

        return image
Beispiel #2
0
 def update_team_crest(self, team):
     crest = getattr(self.fixture, team + '_team').crest
     image = getattr(self, team + '_crest')
     image_from_path(path=crest, image=image)
     image.show()
Beispiel #3
0
    def do_team_crest(self):
        image = image_from_path(path='images/team-emblem.svg')
        image.set_halign(Gtk.Align.CENTER)
        image.set_valign(Gtk.Align.CENTER)

        return image
Beispiel #4
0
 def update_channel_logo(self):
     logo = getattr(self.channel, 'logo')
     image_from_path(path=logo, image=self.channel_logo)
     self.channel_logo.show()
Beispiel #5
0
    def do_channel_logo(self):
        image = image_from_path(path='images/channel-logo.svg')
        image.set_halign(Gtk.Align.CENTER)
        image.set_valign(Gtk.Align.CENTER)

        return image
Beispiel #6
0
 def update_stream_logo(self):
     logo = getattr(self.stream, 'logo')
     image_from_path(path=logo, size=16, image=self.stream_logo)
     self.stream_logo.show()
Beispiel #7
0
 def update_team_crest(self, team):
     crest = getattr(self.fixture, "%s_team" % team).crest
     image = getattr(self, "%s_crest" % team)
     image_from_path(path=crest, image=image)
     image.show()