@@ -27,11 +27,7 @@ def run(self):
2727 # label for year in which user was born
2828 self .l2 = tk .Label (text = "Year: " , font = "courier 10" , bg = "lightblue" )
2929 self .l2 .grid (row = 2 , column = 0 )
30- #yearValue = tk.StringVar()
31- #adding some checking to ensure its valid
3230 yearValue = tk .StringVar ()
33- #while yearValue.get() > 12 or yearValue.get() < 0:
34- # yearValye = tk.IntVar()
3531 self .yearEntry = tk .Entry (self .master , textvariable = yearValue , relief = "solid" )
3632 self .yearEntry .grid (row = 2 , column = 1 , padx = 10 , pady = 10 )
3733
@@ -51,6 +47,7 @@ def run(self):
5147
5248
5349 def check_year ():
50+ #simple method to check the validity of a user input birth year
5451 self .statement .destroy ()
5552 today = date .today ()
5653 try :
@@ -67,6 +64,7 @@ def check_year():
6764 return False
6865
6966 def check_month ():
67+ #simple method to check the validity of a user input birth month
7068 self .statement .destroy ()
7169 try :
7270 month = int (self .monthEntry .get ())
@@ -82,6 +80,7 @@ def check_month():
8280 return False
8381
8482 def check_day ():
83+ #simple method to check the validity of a user input birth day
8584 self .statement .destroy ()
8685 try :
8786 day = int (self .dayEntry .get ())
0 commit comments