From f392590b3155fa5b693610f5541b1145e613f677 Mon Sep 17 00:00:00 2001 From: flavio Date: Tue, 13 Aug 2013 21:33:45 +0000 Subject: Agregar un scroll para encuestas con imágenes grandes. --- diff --git a/Widgets.py b/Widgets.py index 8e07df9..39383d0 100644 --- a/Widgets.py +++ b/Widgets.py @@ -642,13 +642,22 @@ class PollCanvas(Gtk.Box): tabla = Gtk.Table(rows=6, columns=6) tabla.set_border_width(20) + frame.add(tabla) + eventbox = Gtk.EventBox() eventbox.set_border_width(20) eventbox.modify_bg(0, Gdk.Color(65000, 65000, 65000)) eventbox.add(frame) - frame.add(tabla) - self.pack_start(eventbox, True, True, 10) + scroll = Gtk.ScrolledWindow() + + scroll.set_policy( + Gtk.PolicyType.AUTOMATIC, + Gtk.PolicyType.AUTOMATIC) + + scroll.add_with_viewport(eventbox) + + self.pack_start(scroll, True, True, 10) group = Gtk.RadioButton() -- cgit v0.9.1