示例#1
0
    def __init__(self, view, css_id, page_index, paged_panel):
        self.page_index = page_index
        self.paged_panel = paged_panel
        super(PageMenu, self).__init__(view)

        self.menu = self.add_child(Menu(view))
        self.create_items(self.menu)
        self.set_html_representation(self.menu)
        self.set_id(css_id)
        self.append_class('pagination')

        self.enable_refresh(self.query_fields.start_page_number)
示例#2
0
 def __init__(self, view):
     super().__init__(view)
     self.add_child(Menu(view).with_languages())
     self.add_child(P(view, text=_('This is an English sentence.')))