ocarina/trunk/src/GuiObjects/button.py
bjschuma 9f7dc08267 The playlist a notebook, can queue songs and remove songs from queue and end of playback
git-svn-id: file:///home/anna/Desktop/ocarina-legacy/mithos/ocarina@39 1daee41c-8060-4895-b1f0-2197c00d777a
2009-06-30 03:23:01 +00:00

23 lines
482 B
Python

import pygtk
pygtk.require('2.0')
import gtk
from image import Image
class Button(gtk.Button):
def __init__(self,name,image,text,func):
gtk.Button.__init__(self)
self.set_relief(gtk.RELIEF_NONE)
box = gtk.HBox(True,0)
if image!= None:
box.pack_start(image,True,True,0)
#box.add(image)
if text != None:
label = gtk.Label(text)
label.show()
box.pack_start(label,False,False,0)
box.show()
self.add(box)
self.connect("clicked",func,name)
self.show()