/usr/share/pyshared/pida/ui/buttons.py is in pida 0.5.1-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import gtk
def create_mini_button(stock_id, tooltip, click_callback):
tip = gtk.Tooltips()
tip.enable()
im = gtk.Image()
im.set_from_stock(stock_id, gtk.ICON_SIZE_MENU)
but = gtk.Button()
but.set_image(im)
but.connect('clicked', click_callback)
eb = gtk.EventBox()
eb.add(but)
tip.set_tip(eb, tooltip)
return eb
|