mate-menu.py 文件源码

python
阅读 34 收藏 0 点赞 0 评论 0

项目:mate-menu 作者: ubuntu-mate 项目源码 文件源码
def onWindowDraw(self, widget, cr):
        if self.usecustomcolor:
            borderColor = Gdk.RGBA()
            borderColor.parse(self.custombordercolor)
            Gdk.cairo_set_source_rgba(cr, borderColor)
            cr.paint()
        else:
            style = widget.get_style_context()
            req = widget.get_preferred_size()[0]
            Gtk.render_background(style, cr, 0, 0, req.width, req.height)
            Gtk.render_frame(style, cr, 0, 0, req.width, req.height)
        return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号