Ejemplo n.º 1
0
 def _create_widgets(self):
     '''
     This function fills this box with widgets
     '''
     # Division of the available space in three segments:
     # top, middle and bottom
     top = Gtk.Box()
     middle = Gtk.Box()
     self._fill_top_box(top)
     self._fill_middle_box(middle)
     self.pack_start(top, False, True, 0)
     self.pack_start(middle, False, True, 0)
     align = Gtk.Alignment.new(0, 0, 1, 0)
     align.set_padding(10, 0, 0, 0)
     self.parameters_ui = ParametersUI(self.req)
     align.add(self.parameters_ui)
     self.pack_start(align, False, True, 0)
Ejemplo n.º 2
0
 def _create_widgets(self):
     '''
     This function fills this Vbox with widgets
     '''
     # Division of the available space in three segments:
     # top, middle and bottom
     top = gtk.HBox()
     middle = gtk.HBox()
     self._fill_top_hbox(top)
     self._fill_middle_hbox(middle)
     self.pack_start(top, False)
     self.pack_start(middle, False)
     align = gtk.Alignment(xalign=0, yalign=0, xscale=1)
     align.set_padding(10, 0, 0, 0)
     self.parameters_ui = ParametersUI(self.req)
     align.add(self.parameters_ui)
     self.pack_start(align, False)