Skip to content

Commit 64c34f6

Browse files
committed
ignore
1 parent 9962eb7 commit 64c34f6

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

1 gradetracker/GradeTracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import statistics as s
88

99
#add constants next
10-
admins = {'Faculty1':'ABC123','Faculty2':'ABC123'}
10+
admins = {'Modupe':'Coley','Faculty2':'ABC123'}
1111

1212
#Like the admins above is a dictionary but of students. Dictionaries use curly brackets with colons to associate keys with values. In this case, each student's first name is a key. The values are lists of grades.
1313
#Lists are denoted with square brackets. Values are indexed within starting with 0 for the first one. Each value is separated by commas.

3 calcGUI/CalcGUIModified.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from tkinter import *
22
from math import sqrt as sqr
33

4-
4+
#define an object oriented programming
55
class Application(Frame):
66
"""
77
An example of a calculator app developed using the
@@ -21,7 +21,7 @@ def __init__(self, master):
2121
self.create_widgets()
2222
self.bind_buttons(master)
2323
self.grid()
24-
24+
#method (function definition)
2525
def add_chr(self, char, btn=None):
2626
"""
2727
Concatenates a character passed from a button press (or key type)
@@ -109,7 +109,7 @@ def flash(self,btn):
109109
self.master.after(100, lambda: btn.config(bg="SystemButtonFace"))
110110
else:
111111
pass
112-
112+
#binding to the keyboards key logger
113113
def bind_buttons(self, master):
114114
"""
115115
Binds keys to their appropriate input
@@ -216,4 +216,5 @@ def create_widgets(self):
216216
root = Tk()
217217
root.geometry()
218218
app = Application(root)
219+
root.title("Modupe's Calculator")
219220
root.mainloop()

0 commit comments

Comments
 (0)