def _append_recommended_for_you(self):
# TODO: This space will initially contain an opt-in screen, and this
# will update to the tile view of recommended apps when ready
# see https://wiki.ubuntu.com/SoftwareCenter#Home_screen
self.bottom_hbox = Gtk.HBox(spacing=StockEms.SMALL)
bottom_hbox_alignment = Gtk.Alignment()
bottom_hbox_alignment.set_padding(0, 0, StockEms.MEDIUM - 2,
StockEms.MEDIUM - 2)
bottom_hbox_alignment.add(self.bottom_hbox)
self.vbox.pack_start(bottom_hbox_alignment, False, False, 0)
# TODO: During development, place the "Recommended For You" panel
# at the bottom, but swap this with the Top Rated panel once
# the recommended for you pieces are done and deployed
# see https://wiki.ubuntu.com/SoftwareCenter#Home_screen
self.recommended_for_you_panel = RecommendationsPanelLobby(self)
self.bottom_hbox.pack_start(self.recommended_for_you_panel,
True, True, 0)
评论列表
文章目录