예제 #1
0
 def _pack_progress(self, layout):
     vbox = cellpack.VBox()
     
     hbox = cellpack.HBox()
     hbox.pack(cellpack.align_middle(cellpack.align_center(self._progress_textbox(layout))), expand=True)
     hbox.pack(cellpack.pad(cellpack.align_right(cellpack.Hotspot('interrupt', self.INTERRUPT_BUTTON)), right=3))
     background = cellpack.Background(cellpack.align_middle(hbox), min_width=356, min_height=20)
     background.set_callback(style.ProgressBarDrawer(self.data.progress, ConversionProgressBarColorSet).draw)
     
     vbox.pack_end(cellpack.pad(background, bottom=12))
     
     return vbox
예제 #2
0
 def _pack_thumbnail(self, layout):
     thumb = cellpack.DrawingArea(self.THUMB_WIDTH, self.THUMB_HEIGHT, self._draw_thumbnail)
     return cellpack.align_middle(cellpack.align_center(thumb))