# -*- coding: utf-8 -*- import gtk import Controller class View() def __init__(self, controller): menu=Toolbar(controller) image=PuzzleView(controller) #respuesta respuesta = gtk.HBox() respL = gtk.Label("Respuesta:") respL.show() respT = gtk.Entry() respT.show() respB = gtk.Button("Respuesta") respB.show() sgteB = gtk.Button("Siguiente") sgteB.show() respuesta.pack_start(respL, False, False, 0) respuesta.pack_start(respT) respuesta.pack_start(respB) respuesta.pack_start(sgteB) respuesta.show() l1 = gtk.VBox() #agrupo todo #l1.pack_start(encabezado) l1.pack_start(menu, False, False, 4) l1.pack_start(respuesta, False, False, 360) #l1.pack_start(imagen) l1.show() controller.activity.set_canvas(l1)