applications.py 文件源码

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

项目:mate-menu 作者: ubuntu-mate 项目源码 文件源码
def scrollItemIntoView( self, widget, event = None ):
        viewport = widget.get_parent()
        while not isinstance( viewport, Gtk.Viewport ):
            if not viewport.get_parent():
                return
            viewport = viewport.get_parent()
        aloc = widget.get_allocation()
        viewport.get_vadjustment().clamp_page(aloc.y, aloc.y + aloc.height)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号