Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/card.py
diff options
context:
space:
mode:
authorIgnacio Rodríguez <ignacio@Ignacio-Magallanes.(none)>2012-10-26 14:43:07 (GMT)
committer Ignacio Rodríguez <ignacio@Ignacio-Magallanes.(none)>2012-10-26 14:43:07 (GMT)
commit7afe20bedb91275ab57703dfdd05d8d85ac6af1a (patch)
treede1718987dd37f3ccac5a49d8e02a1981b835b68 /card.py
parent6acfac5536fa996760a530feb30504f187d2e497 (diff)
Port finish, but i need a Summary!!
Diffstat (limited to 'card.py')
-rw-r--r--card.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/card.py b/card.py
index 8b2f489..e098980 100644
--- a/card.py
+++ b/card.py
@@ -1,4 +1,5 @@
#Copyright (c) 2010, 2011 Walter Bender
+#Copyright (c) 2012 Ignacio Rodriguez
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -10,16 +11,15 @@
# Free Software Foundation, 51 Franklin Street, Suite 500 Boston, MA
# 02110-1335 USA
+from gi.repository import Gtk, Gdk, GdkPixbuf
import pygtk
pygtk.require('2.0')
-import gtk
-
from sprites import Sprite
def load_image(file, w, h):
""" Convert from file to pixbuf at size w, h """
- return gtk.gdk.pixbuf_new_from_file_at_size(file, int(w), int(h))
+ return GdkPixbuf.Pixbuf.new_from_file_at_size(file, int(w), int(h))
class Card: