Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Saludame.activity/credits.py
blob: 5e5a7bba1461e7718dbb3a2dececce31781354f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- coding: utf-8 -*-

import gtk
import rsvg

class Credits(gtk.DrawingArea):
    
    def __init__(self):
        gtk.DrawingArea.__init__(self)
        self.connect('expose-event', self._expose_cb)

    
    def _expose_cb(self, widget, event):
        icon_file = open("credits/saludame.svg", 'r')
        data = icon_file.read()
        icon_file.close()
        
        pixbuf = rsvg.Handle(data=data).get_pixbuf()
        self.window.draw_pixbuf(None, pixbuf, 0, 0, 0, 0)