Update inkycal_agenda.py
This commit is contained in:
parent
1e37b77a54
commit
a3e604511d
@ -132,7 +132,7 @@ class Agenda(inkycal_module):
|
|||||||
|
|
||||||
# Sort events by beginning time
|
# Sort events by beginning time
|
||||||
parser.sort()
|
parser.sort()
|
||||||
# parser.show_events()
|
print(parser.show_events())
|
||||||
|
|
||||||
# Set the width for date, time and event titles
|
# Set the width for date, time and event titles
|
||||||
date_width = int(max([self.font.getlength(
|
date_width = int(max([self.font.getlength(
|
||||||
@ -203,7 +203,6 @@ class Agenda(inkycal_module):
|
|||||||
write(im_black, (x_time, line_pos[cursor][1]),
|
write(im_black, (x_time, line_pos[cursor][1]),
|
||||||
(time_width, line_height), time+" ",
|
(time_width, line_height), time+" ",
|
||||||
font=self.font, alignment='right')
|
font=self.font, alignment='right')
|
||||||
# Check if event is all day, if it is, add "all day" where time would be
|
|
||||||
if parser.all_day(_):
|
if parser.all_day(_):
|
||||||
write(im_black, (x_time, line_pos[cursor][1]),
|
write(im_black, (x_time, line_pos[cursor][1]),
|
||||||
(time_width, line_height), "all day ",
|
(time_width, line_height), "all day ",
|
||||||
|
Loading…
Reference in New Issue
Block a user