Example #1
0
    def render_this(self):

        Window.render_this(self)

        x, y = self.__box.get_screen_pos()
        w, h = self.__box.get_size()
        screen = self.__box.get_screen()

        screen.fill_area(x, y, w, h, theme.color_mb_background)

        if (not platforms.MAEMO5):
            self.__vbox.set_geometry(4, 4, w - 8, h - 78)
            self.__button_ok.set_geometry(w - 260, h - 60, 120, 60)
            self.__button_cancel.set_geometry(w - 130, h - 60, 120, 60)

        else:
            self.__vbox.set_geometry(6, 5, w - 165 - 12, h - 5)
            self.__button_ok.set_geometry(w - 120, h - 80, 100, 60)
Example #2
0
    def render_this(self):

        w, h = self.get_size()

        if ((w, h) != self.__window_size):
            self.__update_items_per_row(self.__browser.get_current_folder())
            self.__window_size = (w, h)

        if (self.__arr.is_visible()):
            Window.render_this(self)

        elif (self.__is_shutdown):
            x, y = self.get_screen_pos()
            screen = self.get_screen()

            screen.fill_area(x, y, w, h, theme.color_mb_background)
            screen.draw_centered_text(values.NAME + " " + values.VERSION,
                                      theme.font_mb_headline, x, h / 2 - 30, w,
                                      30, theme.color_mb_text)
            screen.draw_centered_text(values.COPYRIGHT, theme.font_mb_plain, x,
                                      h / 2, w, 30, theme.color_mb_text)
            screen.draw_centered_text("Exiting...", theme.font_mb_plain, x,
                                      h - 80, w, 20, theme.color_mb_text)
            screen.fit_pixbuf(theme.mb_logo, w - 120, h - 120, 120, 120)

        else:
            x, y = self.get_screen_pos()
            screen = self.get_screen()

            screen.fill_area(x, y, w, h, theme.color_mb_background)
            screen.draw_centered_text(values.NAME + " " + values.VERSION,
                                      theme.font_mb_headline, x, h / 2 - 30, w,
                                      30, theme.color_mb_text)
            screen.draw_centered_text(values.COPYRIGHT, theme.font_mb_plain, x,
                                      h / 2, w, 30, theme.color_mb_text)
            screen.draw_centered_text("Loading... Please Wait",
                                      theme.font_mb_plain, x, h - 80, w, 20,
                                      theme.color_mb_text)
            screen.fit_pixbuf(theme.mb_logo, w - 120, h - 120, 120, 120)