From 6e092e00e896471d0e315a4bd5061d25f9094000 Mon Sep 17 00:00:00 2001 From: Florent Pigout Date: Mon, 13 Feb 2012 23:43:31 +0000 Subject: set image bg to white in help screen --- diff --git a/atoidejouer/ui/screen/help.py b/atoidejouer/ui/screen/help.py index b592aff..2ea95c4 100644 --- a/atoidejouer/ui/screen/help.py +++ b/atoidejouer/ui/screen/help.py @@ -20,9 +20,9 @@ class ScreenHelp(gtk.ScrolledWindow): gtk.ScrolledWindow.__init__(self) self.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) # init main box - self.__v_box = gtk.VBox(spacing=2) - self.__v_box.show() - self.add_with_viewport(self.__v_box) + __v_box = gtk.VBox() + __v_box.show() + self.add_with_viewport(__v_box) # keep activity self.activity = activity_ # load html content @@ -37,10 +37,16 @@ class ScreenHelp(gtk.ScrolledWindow): else: i_path = storage.get_html_img_path(content) logger.debug(i_path) - c_widget = gtk.Image() - c_widget.set_from_file(i_path) + # an image + im = gtk.Image() + im.set_from_file(i_path) + im.show() + # put in an event box for color + c_widget = gtk.EventBox() + c_widget.add(im) + c_widget.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('white')) c_widget.show() - self.__v_box.pack_start(c_widget, expand=False, fill=True) + __v_box.pack_start(c_widget, expand=False, fill=True) def _show(self): # show all -- cgit v0.9.1