Beispiel #1
0
 def create_page(self):
     return g15theme.G15Page(self.page_id, self.screen,
                             title=self._title, theme=self.create_theme(),
                             thumbnail_painter=self._paint_thumbnail,
                             theme_properties_callback=self.get_theme_properties,
                             theme_properties_attributes=self.get_theme_attributes,
                             painter=self._paint,
                             originating_plugin=self)
Beispiel #2
0
 def create_page(self):
     """
     Create the page. Subclasses may override.
     """
     return g15theme.G15Page(self.page_id, self.screen, priority=g15screen.PRI_NORMAL, title = self._title, theme = self.theme, \
                                  theme_properties_callback = self.get_theme_properties,
                                  thumbnail_painter = self.paint_thumbnail,
                                  originating_plugin = self)
Beispiel #3
0
 def CreatePage(self, page_id, title, priority, sender=None):
     page = g15theme.G15Page(page_id, self._screen, priority=priority)
     self._screen.add_page(page)
     page.set_title(title)
     self._get_client(sender).pages.append(page)
     return self.GetPageForID(page_id)