Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2f5d5e6

Browse files
comments added, and some testing stuff removed
1 parent 063e2a5 commit 2f5d5e6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎Age-Calculator-GUI/age_calc_gui.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /