def SetupMateMenuBorder(self):
style = self.window.get_style_context()
styleProvider = Gtk.CssProvider()
styleProvider.load_from_data(".background { border-width: %dpt; }" % self.borderwidth)
style.add_provider(styleProvider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)
self.border.set_margin_top(self.borderwidth)
self.border.set_margin_bottom(self.borderwidth)
self.border.set_margin_start(self.borderwidth)
self.border.set_margin_end(self.borderwidth)
评论列表
文章目录