diff options
author | Ignacio 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) |
commit | 7afe20bedb91275ab57703dfdd05d8d85ac6af1a (patch) | |
tree | de1718987dd37f3ccac5a49d8e02a1981b835b68 /card.py | |
parent | 6acfac5536fa996760a530feb30504f187d2e497 (diff) |
Port finish, but i need a Summary!!
Diffstat (limited to 'card.py')
-rw-r--r-- | card.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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: |