@@ -53,13 +53,13 @@ def check_year():
53
53
try :
54
54
year = int (self .yearEntry .get ())
55
55
if today .year - year < 0 :
56
- self .statement = tk .Label (text = f"{ nameValue .get ()} 's age cannot be negative." , font = "courier 10" , bg = "lightblue" )
56
+ self .statement = tk .Label (text = f"{ nameValue .get ()} 's age\n cannot be negative." , font = "courier 10" , bg = "lightblue" )
57
57
self .statement .grid (row = 6 , column = 1 , pady = 15 )
58
58
return False
59
59
else :
60
60
return True
61
61
except Exception as e :
62
- self .statement = tk .Label (text = f"{ nameValue .get ()} 's birth year cannot parse to int." , font = "courier 10" , bg = "lightblue" )
62
+ self .statement = tk .Label (text = f"{ nameValue .get ()} 's birth year\n cannot parse to int." , font = "courier 10" , bg = "lightblue" )
63
63
self .statement .grid (row = 6 , column = 1 , pady = 15 )
64
64
return False
65
65
@@ -69,13 +69,13 @@ def check_month():
69
69
try :
70
70
month = int (self .monthEntry .get ())
71
71
if month < 0 or month > 12 :
72
- self .statement = tk .Label (text = f"{ nameValue .get ()} 's birth month is outside 1-12." , font = "courier 10" , bg = "lightblue" )
72
+ self .statement = tk .Label (text = f"{ nameValue .get ()} 's birth month\n is outside 1-12." , font = "courier 10" , bg = "lightblue" )
73
73
self .statement .grid (row = 6 , column = 1 , pady = 15 )
74
74
return False
75
75
else :
76
76
return True
77
77
except Exception as e :
78
- self .statement = tk .Label (text = f"{ nameValue .get ()} 's birth month cannot parse to int." , font = "courier 10" , bg = "lightblue" )
78
+ self .statement = tk .Label (text = f"{ nameValue .get ()} 's birth month\n cannot parse to int." , font = "courier 10" , bg = "lightblue" )
79
79
self .statement .grid (row = 6 , column = 1 , pady = 15 )
80
80
return False
81
81
@@ -85,13 +85,13 @@ def check_day():
85
85
try :
86
86
day = int (self .dayEntry .get ())
87
87
if day < 0 or day > 31 :
88
- self .statement = tk .Label (text = f"{ nameValue .get ()} 's birth day is outside 1-31." , font = "courier 10" , bg = "lightblue" )
88
+ self .statement = tk .Label (text = f"{ nameValue .get ()} 's birth day is\n outside 1-31." , font = "courier 10" , bg = "lightblue" )
89
89
self .statement .grid (row = 6 , column = 1 , pady = 15 )
90
90
return False
91
91
else :
92
92
return True
93
93
except Exception as e :
94
- self .statement = tk .Label (text = f"{ nameValue .get ()} 's birth month cannot parse to int." , font = "courier 10" , bg = "lightblue" )
94
+ self .statement = tk .Label (text = f"{ nameValue .get ()} 's birth month\n cannot parse to int." , font = "courier 10" , bg = "lightblue" )
95
95
self .statement .grid (row = 6 , column = 1 , pady = 15 )
96
96
return False
97
97
0 commit comments