def __init__(self, padding=0):
Gtk.Alignment.__init__(self)
# set padding + some additional padding in the bottom, left and
# right edges to factor in the dropshadow width, and ensure even
# visual border
self.set_padding(padding, padding + 2, padding + 1, padding + 1)
self._cache_art_assets()
# second tier of caching, cache resultant surface of
# fully composed and rendered frame
self._frame_surface_cache = None
self._allocation = Gdk.Rectangle()
self.connect("size-allocate", self.on_size_allocate)
self.connect("style-updated", self.on_style_updated)
评论列表
文章目录