From 0aa1eb5f6cb83f61f37fcb3fbdf4a1a93e5dfe84 Mon Sep 17 00:00:00 2001 From: Ryan Rix Date: Tue, 8 Dec 2009 17:58:44 -0700 Subject: Working image drawing; all of a sudden the "do-this-with-cairo-or perish-mortal!" idea is gone, and this becomes MUCH easier :) --- frontend/tour_gtk_frontend.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/tour_gtk_frontend.py b/frontend/tour_gtk_frontend.py index 1397bad..d0a88aa 100644 --- a/frontend/tour_gtk_frontend.py +++ b/frontend/tour_gtk_frontend.py @@ -49,10 +49,14 @@ class Frontend: class InitialTreeView: def __init__(self, window): - self.draw() + self.draw(window) window.show() - def draw(self): + def draw(self, window): + image = gtk.Image() + image.set_from_file("/usr/share/pixmaps/fedora-logo-small.png") + window.add(image) + image.show() pass def erase(self): -- cgit