From 4cce9975b9d5ab8c47e6fc600000d08c22e797a3 Mon Sep 17 00:00:00 2001 From: Leonardo Robol Date: Thu, 9 Apr 2009 11:36:55 +0200 Subject: [PATCH] Altre piccole correzioni :) --- song.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/song.py b/song.py index 66a48cf..f2ae222 100644 --- a/song.py +++ b/song.py @@ -22,17 +22,17 @@ class verse(): class song(): - def __init__(self, newtitle): + def __init__(self, newtitle, newbody=[], newmauthor = "Unknown", newtauthor="Unknown", newtone="Unknown", newyear="Unknown"): # Initialize vars.. self.title = newtitle # Body is an array of string with verses and # chorus to be understood with __structure - self.body = [] + self.body = newbody - self.mauthor = "Unknown" - self.tauthor = "Unknown" - self.tone = "Unknown" - self.year = "Unknown" + self.mauthor = newmauthor + self.tauthor = newtauthor + self.tone = newtone + self.year = newyear # Structure is an array of the type 'c' 'v' # where c means Chorus, v means Verse -- 2.1.4