import tkinter
import tk_tools

root = tkinter.Tk()
root.title('TK Tools Calendar')
cal = tk_tools.Calendar(root)
cal.pack()


def custom_callback():
    print(cal.selection)


cal.add_callback(custom_callback)

root.mainloop()

@@ -25,16 +25,97 @@
 _tools%0A%0A
+%0Adef callback():%0A    print(calendar.selection)%0A%0A%0Aif __name__ == '__main__':%0A%0A    
 root = t
@@ -126,16 +126,20 @@
 er.Tk()%0A
+    
 root.tit
@@ -162,19 +162,28 @@
 endar')%0A
-cal
+    calendar
  = tk_to
@@ -205,74 +205,41 @@
 ot)%0A
-cal.pack()%0A%0A%0Adef custom_callback():%0A    print(cal.selection)%0A%0A%0Acal
+    calendar.pack()%0A%0A    calendar
 .add
@@ -252,15 +252,8 @@
 ack(
-custom_
 call
@@ -259,16 +259,20 @@
 lback)%0A%0A
+    
 root.mai

add if __name__ == '__main__':, renamed one variable, and one function