def __init__(self,gladefile): builder=gtk.Builder() try: builder.add_from_file(gladefile) except glib.GError, e: util.showmessage(None,str(e)) raise SystemExit(str(e))
def __init__(self): GladeWrapper.__init__(self,os.path.join(DATADIR,"pianopanel.glade")) try: self.piano=Piano(os.path.join(DATADIR,"pianoroll.png")) except glib.GError, e: util.showmessage(None,str(e)) raise SystemExit(str(e))