From e11ee5a9305859ec9a0f10c4cdd849c33724ee45 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sat, 19 Mar 2011 18:12:51 -0400 Subject: [PATCH] minor formatting --- Window.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Window.py b/Window.py index ba1cece..d12f640 100644 --- a/Window.py +++ b/Window.py @@ -8,7 +8,8 @@ class Window: self.ds = ds self.shown_projects = [] self.taskStart = datetime.now() - self.monday = self.taskStart.date() - timedelta(self.taskStart.weekday()) + self.monday = \ + self.taskStart.date() - timedelta(self.taskStart.weekday()) # Top-level Window creation self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) @@ -139,7 +140,7 @@ class Window: self.projects_table.set_row_spacings(3) row += 1 - # Add Tasks information of we have a current project + # Add Tasks information if we have a current project if self.currProject > 0: l = gtk.Label() l.set_markup('Tasks') @@ -219,7 +220,8 @@ class Window: if self.currProject in day_hours: for t in day_hours[self.currProject]: if t in self.task_hour_labels: - hrs = self.hoursFromSeconds(day_hours[self.currProject][t]) + hrs = self.hoursFromSeconds( + day_hours[self.currProject][t]) if not t in totals: totals[t] = 0 totals[t] += float(hrs)