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
评论列表
文章目录