remove debug prints
This commit is contained in:
parent
514ad17ea1
commit
743bcb03f1
@ -226,8 +226,6 @@ class Window:
|
||||
for day in range(7):
|
||||
dt = str(self.monday + timedelta(day))
|
||||
day_hours = self.ds.getProjectDailyHours(dt)
|
||||
print day
|
||||
print day_hours
|
||||
for p in day_hours:
|
||||
if p in self.project_hour_labels:
|
||||
hrs = self.hoursFromSeconds(day_hours[p])
|
||||
@ -235,7 +233,6 @@ class Window:
|
||||
totals[p] = 0
|
||||
totals[p] += float(hrs)
|
||||
self.project_hour_labels[p][day].set_text(hrs)
|
||||
print totals
|
||||
for p in totals:
|
||||
if p in self.project_hour_labels:
|
||||
self.project_hour_labels[p][7].set_text(str(totals[p]))
|
||||
@ -315,14 +312,13 @@ class Window:
|
||||
if event.button == 1:
|
||||
return self.project_select_event(lbl.get_text())
|
||||
elif event.button == 3:
|
||||
print "Right Click"
|
||||
# TODO: handle right-click
|
||||
return True
|
||||
return False
|
||||
|
||||
def project_select_event(self, projectName):
|
||||
pnum = self.getProjectNum(projectName)
|
||||
if pnum:
|
||||
print "Selected project '%s' (%d)" % (projectName, pnum)
|
||||
self.currProject = pnum
|
||||
self.updateProjects()
|
||||
return True
|
||||
@ -353,7 +349,7 @@ class Window:
|
||||
if event.button == 1:
|
||||
return self.task_select_event(lbl.get_text())
|
||||
elif event.button == 3:
|
||||
print "Right Click"
|
||||
# TODO: handle right-click
|
||||
return True
|
||||
return False
|
||||
|
||||
@ -362,7 +358,6 @@ class Window:
|
||||
if tnum:
|
||||
self.updateCurrTaskHours()
|
||||
self.currTask = tnum
|
||||
print "Selected task '%s' (%d)" % (taskName, tnum)
|
||||
self.updateProjects()
|
||||
return True
|
||||
return False
|
||||
|
Loading…
x
Reference in New Issue
Block a user