Esempio n. 1
0
    def _create_bottom_navigation_bar(self):
        bottom_bar = Gtk.Box()

        self.next_button = create_navigation_button(_("NEXT PAGE"), "next")
        self.next_button.connect("clicked", self._load_page_wrapper, 1)

        self.prev_button = create_navigation_button(_("PREVIOUS"), "previous")
        self.prev_button.connect("clicked", self._load_page_wrapper, -1)

        bottom_bar.pack_start(self.prev_button, False, False, 0)
        bottom_bar.pack_end(self.next_button, False, False, 0)
        return bottom_bar
Esempio n. 2
0
    def _create_bottom_navigation_bar(self):
        bottom_bar = Gtk.Box()

        self.next_button = create_navigation_button(_("NEXT PAGE"), 'next')
        self.next_button.connect('clicked', self._load_page_wrapper, 1)

        self.prev_button = create_navigation_button(_("PREVIOUS"), 'previous')
        self.prev_button.connect('clicked', self._load_page_wrapper, -1)

        bottom_bar.pack_start(self.prev_button, False, False, 0)
        bottom_bar.pack_end(self.next_button, False, False, 0)
        return bottom_bar
Esempio n. 3
0
    def _create_bottom_navigation_bar(self):
        bottom_bar = Gtk.ButtonBox()

        self.prev_button = create_navigation_button(_("PREVIOUS"), "previous")
        self.prev_button.connect("clicked", self._go_to_other_badge, -1)

        self.grid_button = create_navigation_button(_("BACK TO GRID"), "middle")
        self.grid_button.connect("clicked", self._go_to_grid)

        self.next_button = create_navigation_button(_("NEXT"), "next")
        self.next_button.connect("clicked", self._go_to_other_badge, 1)

        bottom_bar.pack_start(self.prev_button, False, False, 0)
        bottom_bar.pack_start(self.grid_button, False, False, 0)
        bottom_bar.pack_end(self.next_button, False, False, 0)
        # TODO: move this to CSS
        bottom_bar.set_margin_top(25)

        self._win.pack_in_bottom_bar(bottom_bar)
Esempio n. 4
0
    def _create_bottom_navigation_bar(self):
        bottom_bar = Gtk.ButtonBox()

        self.prev_button = create_navigation_button(_("PREVIOUS"), 'previous')
        self.prev_button.connect('clicked', self._go_to_other_badge, -1)

        self.grid_button = create_navigation_button(_("BACK TO GRID"),
                                                    'middle')
        self.grid_button.connect('clicked', self._go_to_grid)

        self.next_button = create_navigation_button(_("NEXT"), 'next')
        self.next_button.connect('clicked', self._go_to_other_badge, 1)

        bottom_bar.pack_start(self.prev_button, False, False, 0)
        bottom_bar.pack_start(self.grid_button, False, False, 0)
        bottom_bar.pack_end(self.next_button, False, False, 0)
        # TODO: move this to CSS
        bottom_bar.set_margin_top(25)

        self._win.pack_in_bottom_bar(bottom_bar)