initial creation
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import calendar
|
||||
import webbrowser
|
||||
|
||||
hcal = calendar.HTMLCalendar() # <1>
|
||||
formatted_month = hcal.formatmonth(2012, 1) # <2>
|
||||
|
||||
html_file_name = 'sample_calendar.html'
|
||||
|
||||
with open(html_file_name, 'w') as calendar_out:
|
||||
calendar_out.write(formatted_month) # <3>
|
||||
webbrowser.open("file://" + os.path.realpath(html_file_name)) # <4>
|
||||
Reference in New Issue
Block a user