Skip to content

Commit e3de18b

Browse files
committed
Various updates to make the tutorials smoother
Incremental changes. Starting to remove old Microsoft videos due to them disappearing from the cloud.
1 parent f07cd08 commit e3de18b

12 files changed

+913
-278
lines changed

3 calcGUI/calcGUI.py

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

44

5-
class Application(Frame):
5+
class Calculator(Frame):
66
"""
77
An example of a calculator app developed using the
88
Tkinter GUI.
@@ -14,7 +14,7 @@ def __init__(self, master):
1414
:param master: root.Tk()
1515
"""
1616
Frame.__init__(self, master)
17-
self.entry = Entry(master, width=24, font=("Arial",25))
17+
self.entry = Entry(master, width=36, font=("Arial",25))
1818
self.entry.grid(row=0, column=0, columnspan=6, sticky="w")
1919
self.entry.focus_set()
2020
self.entry.configure(state="disabled", disabledbackground="white", disabledforeground="black")
@@ -216,5 +216,5 @@ def create_widgets(self):
216216
root = Tk()
217217
root.geometry()
218218
root.title("Exciting GUI Calculator")
219-
app = Application(root)
219+
app = Calculator(root)
220220
root.mainloop()

Python Absolute Beginner/Module_1.0_Tutorials_START_HERE.ipynb

Lines changed: 13 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
},
111111
{
112112
"cell_type": "code",
113-
"execution_count": 1,
113+
"execution_count": null,
114114
"metadata": {},
115115
"outputs": [],
116116
"source": []
@@ -321,9 +321,7 @@
321321
{
322322
"cell_type": "code",
323323
"execution_count": null,
324-
"metadata": {
325-
"collapsed": true
326-
},
324+
"metadata": {},
327325
"outputs": [],
328326
"source": [
329327
"# examples of printing strings with single and double quotes\n",
@@ -343,9 +341,7 @@
343341
{
344342
"cell_type": "code",
345343
"execution_count": null,
346-
"metadata": {
347-
"collapsed": true
348-
},
344+
"metadata": {},
349345
"outputs": [],
350346
"source": [
351347
"# [ ] enter a string in the print() function using single quotes\n",
@@ -419,9 +415,7 @@
419415
{
420416
"cell_type": "code",
421417
"execution_count": null,
422-
"metadata": {
423-
"collapsed": true
424-
},
418+
"metadata": {},
425419
"outputs": [],
426420
"source": [
427421
"# printing an Integer with python\n",
@@ -443,9 +437,7 @@
443437
{
444438
"cell_type": "code",
445439
"execution_count": null,
446-
"metadata": {
447-
"collapsed": true
448-
},
440+
"metadata": {},
449441
"outputs": [],
450442
"source": [
451443
"# [ ] print an Integer\n",
@@ -512,9 +504,7 @@
512504
{
513505
"cell_type": "code",
514506
"execution_count": null,
515-
"metadata": {
516-
"collapsed": true
517-
},
507+
"metadata": {},
518508
"outputs": [],
519509
"source": [
520510
"# [ ] Review code and Run\n",
@@ -532,7 +522,6 @@
532522
"cell_type": "code",
533523
"execution_count": null,
534524
"metadata": {
535-
"collapsed": true,
536525
"scrolled": true
537526
},
538527
"outputs": [],
@@ -561,9 +550,7 @@
561550
{
562551
"cell_type": "code",
563552
"execution_count": null,
564-
"metadata": {
565-
"collapsed": true
566-
},
553+
"metadata": {},
567554
"outputs": [],
568555
"source": [
569556
"# { ] run cell above then run this cell after completing the code as directed\n",
@@ -647,9 +634,7 @@
647634
{
648635
"cell_type": "code",
649636
"execution_count": null,
650-
"metadata": {
651-
"collapsed": true
652-
},
637+
"metadata": {},
653638
"outputs": [],
654639
"source": [
655640
"test_value = 22\n",
@@ -672,7 +657,6 @@
672657
"cell_type": "code",
673658
"execution_count": null,
674659
"metadata": {
675-
"collapsed": true,
676660
"slideshow": {
677661
"slide_type": "subslide"
678662
}
@@ -698,9 +682,7 @@
698682
{
699683
"cell_type": "code",
700684
"execution_count": null,
701-
"metadata": {
702-
"collapsed": true
703-
},
685+
"metadata": {},
704686
"outputs": [],
705687
"source": [
706688
"# [ ] assign the student_name variable a different string value (a different name)\n",
@@ -727,9 +709,7 @@
727709
{
728710
"cell_type": "code",
729711
"execution_count": null,
730-
"metadata": {
731-
"collapsed": true
732-
},
712+
"metadata": {},
733713
"outputs": [],
734714
"source": [
735715
"# [ ] assigning a value to a variable called bucket\n",
@@ -2205,7 +2185,7 @@
22052185
},
22062186
{
22072187
"cell_type": "code",
2208-
"execution_count": 9,
2188+
"execution_count": null,
22092189
"metadata": {},
22102190
"outputs": [],
22112191
"source": [
@@ -3160,9 +3140,7 @@
31603140
{
31613141
"cell_type": "code",
31623142
"execution_count": null,
3163-
"metadata": {
3164-
"collapsed": true
3165-
},
3143+
"metadata": {},
31663144
"outputs": [],
31673145
"source": [
31683146
"# review and run code to test case sensitive examples \n",
@@ -3181,9 +3159,7 @@
31813159
{
31823160
"cell_type": "code",
31833161
"execution_count": null,
3184-
"metadata": {
3185-
"collapsed": true
3186-
},
3162+
"metadata": {},
31873163
"outputs": [],
31883164
"source": [
31893165
"# review and run code to test removing case sensitivity from a string comparison\n",

0 commit comments

Comments
 (0)