Esempio n. 1
0
 def update_for_width(self, width):
     """
         Update banner internals for width, call this before showing banner
         @param width as int
     """
     BannerWidget.update_for_width(self, width)
     self.__entry.set_size_request(self.width / 3, -1)
Esempio n. 2
0
 def update_for_width(self, width):
     """
         Update banner internals for width, call this before showing banner
         @param width as int
     """
     BannerWidget.update_for_width(self, width)
     self.__set_internal_size()