Skip to content

Commit 29c4153

Browse files
committed
changes following review
1 parent c4aa6e5 commit 29c4153

File tree

4 files changed

+6
-344
lines changed

4 files changed

+6
-344
lines changed

Chapter01/banana_survey_no_vars.py

Lines changed: 0 additions & 169 deletions
This file was deleted.

Chapter01/banana_survey_pack_version.py

Lines changed: 0 additions & 169 deletions
This file was deleted.

Chapter01/banana_survey_variables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
root,
4848
textvariable=num_var,
4949
from_=0,
50-
increment=1,
51-
value=3
50+
to=1000,
51+
increment=1
5252
)
5353

5454
# Listboxes don't work well with variables,

Chapter01/hello_tkinter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
"""Hello World application for Tkinter"""
22

3-
# Import all the classes from tkinter
4-
from tkinter import *
3+
# Import tkinter
4+
import tkinter as tk
55

66
# Create a root window
7-
root = Tk()
7+
root = tk.Tk()
88

99
# Create a widget
10-
label = Label(root, text="Hello World")
10+
label = tk.Label(root, text="Hello World")
1111

1212
# Place the label on the root window
1313
label.pack()

0 commit comments

Comments
 (0)