Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorent Pigout <florent.pigout@gmail.com>2012-02-13 23:43:31 (GMT)
committer Florent Pigout <florent.pigout@gmail.com>2012-02-13 23:43:31 (GMT)
commit6e092e00e896471d0e315a4bd5061d25f9094000 (patch)
tree14f8606593d3e405fc492b4c8701693fbf42d456
parentfcbbdae8a35d2021544967f481d060b2d56a8070 (diff)
set image bg to white in help screen1.0
-rw-r--r--atoidejouer/ui/screen/help.py18
1 files changed, 12 insertions, 6 deletions
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