diff options
author | flavio <fdanesse@gmail.com> | 2013-08-07 00:06:48 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-09-02 17:50:01 (GMT) |
commit | 1f12b23fc140d4ba549939ee671f5eb4caefd90b (patch) | |
tree | b774b80731d512305e74eda1c71c73637a3c4674 | |
parent | 09275c3723524dcabe557b1994bb455c7ecd7501 (diff) |
Correcciones.
-rw-r--r-- | poll.py | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -26,6 +26,7 @@ from gi.repository import GObject from gi.repository import Gtk from gi.repository import Gdk +from gi.repository import GdkPixbuf GObject.threads_init() @@ -296,6 +297,11 @@ class PollBuilder(activity.Activity): Show the poll canvas where children vote on an existing poll. """ + scroll = Gtk.ScrolledWindow() + scroll.set_policy( + Gtk.PolicyType.AUTOMATIC, + Gtk.PolicyType.AUTOMATIC) + self._current_view = 'poll' canvasbox = Gtk.VBox() @@ -339,9 +345,11 @@ class PollBuilder(activity.Activity): self.current_vote = None self.__draw_poll_details_box() - canvasbox.show_all() + scroll.add_with_viewport(canvasbox) + + scroll.show_all() - return canvasbox + return scroll def _select_poll_button_cb(self, button, sha=None): """ |