Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCode Raguet <ignacio.code@gmail.com>2013-07-31 15:00:23 (GMT)
committer Code Raguet <ignacio.code@gmail.com>2013-07-31 15:00:23 (GMT)
commit38ec9ed902b120b1aa54661c592c9b261ac95539 (patch)
tree58c3c83e88d91d4c821a5b4af0e582e1b84834f2
parentd3e1ac2f4572b3ee81a13db319d8b2eeb36b5a59 (diff)
Refactor: dummy method for make pixbuf from a base64 string
-rw-r--r--CeibalEncuesta/gtk2/CeibalEncuesta/Widgets.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/CeibalEncuesta/gtk2/CeibalEncuesta/Widgets.py b/CeibalEncuesta/gtk2/CeibalEncuesta/Widgets.py
index 693a740..31d00fd 100644
--- a/CeibalEncuesta/gtk2/CeibalEncuesta/Widgets.py
+++ b/CeibalEncuesta/gtk2/CeibalEncuesta/Widgets.py
@@ -1072,7 +1072,16 @@ class Pregunta(gtk.VBox):
self.show_all()
def get_question_img(self):
- return gdk.pixbuf_new_from_file(ICON)
+ pixbuf = gdk.pixbuf_new_from_file(ICON)
+ if self.question_has_img():
+ pixbuf = self.make_pixbuf_from_string()
+ return pixbuf
+
+ def question_has_img(self):
+ return False
+
+ def make_pixbuf_from_string(self):
+ pass
def __emit_text_and_change(self, widget, id_opcion, text, activan):
"""