fanim_timeline.py 文件源码

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

项目:gimp-fanim 作者: douglasvini 项目源码 文件源码
def _setup_onionskin(self):
        stock_size = gtk.ICON_SIZE_BUTTON
        button_size = 30
        onionskin_bar = gtk.HBox()

        # active onionskin
        b_active = Utils.toggle_button_stock(gtk.STOCK_DND_MULTIPLE,stock_size)

        # connect widgets
        b_active.connect("clicked",self.on_onionskin)

        # tooltips
        b_active.set_tooltip_text("enable/disable the onion skin effect")

        # add to the disable on play list
        w = [b_active]
        map(lambda x: self.widgets_to_disable.append(x),w)

        # packing everything in gbar
        map(lambda x: onionskin_bar.pack_start(x,False,False,0),w)

        return onionskin_bar
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号