Skip to content

Commit 73c9ba9

Browse files
committed
Additional Pep 8 changes
1 parent 6c4c0d4 commit 73c9ba9

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

Code-Sleep-Python/Inception TicTacToe/inceptionTTT.py

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import tkinter
22

3-
''' #list of possible win combinations in the form of button numbers
3+
4+
class pvp_app():
5+
6+
def __init__(self):
7+
tkinter.Frame.__init__(self)
8+
9+
'''
10+
#list of possible win combinations in the form of button numbers
411
WinCombo=[[1,2,3], [4,5,6], [7,8,9], #rows
512
[1,4,7], [2,5,8], [3,6,9], #columns
613
[1,5,9], [3,5,7]] #diagonals
@@ -33,12 +40,7 @@
3340
for k in range(1,10):
3441
self.button_lst[k].configure(state=DISABLED)
3542
break
36-
'''
37-
38-
39-
class pvp_app():
40-
def __init__(self):
41-
tkinter.Frame.__init__(self)
43+
'''
4244

4345
def PlayerGame(self):
4446
self.pvp_button.grid_forget()
@@ -80,7 +82,8 @@ def PlayerGame(self):
8082
bg="red",
8183
state=tkinter.DISABLED,
8284
command=lambda x=i,
83-
y=j: self.handle_button(
85+
y=j:
86+
self.handle_button(
8487
x, y), height=1,
8588
width=2,
8689
font=("Purisa", 18))
@@ -234,7 +237,8 @@ def check(self):
234237
break
235238
if self.GameDone == tkinter.TRUE:
236239
self.message = tkinter.messagebox.askquestion(" ",
237-
"Do you want to play the "
240+
"Do you want to "
241+
"play the "
238242
"game again?")
239243
if self.message == "no":
240244
self.QuitGame()
@@ -304,7 +308,8 @@ def __init__(self, master=None):
304308

305309
def ShowHomepage(self):
306310
self.homepage_label = tkinter.Label(self,
307-
text="WELCOME TO THE WORLD OF TIC-TAC-TOE",
311+
text="WELCOME TO THE WORLD OF "
312+
"TIC-TAC-TOE",
308313
font=("courier", 15), fg="red",
309314
bg="yellow")
310315
self.homepage_label.grid(row=0, column=1, padx=20, pady=25)

0 commit comments

Comments
 (0)