Skip to content

Commit 0fb09a2

Browse files
style: format code with autopep8
Format code with autopep8 This commit fixes the style issues introduced in 0921ecb according to the output from Autopep8. Details: None
1 parent 4f43a87 commit 0fb09a2

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Diff for: AnagramFinder(GUI)/app.py

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
import tkinter as tk
22
from itertools import permutations
33

4+
45
def find_anagrams():
56
a = entry.get().strip().lower()
6-
7+
78
if a:
89
b = a.split()
910
c = []
1011
for d in b:
1112
e = ["".join(f) for f in permutations(d)]
1213
c.extend(e)
13-
14+
1415
y.set(", ".join(c))
1516
else:
1617
y.set("Please enter a valid string.")
1718

19+
1820
app = tk.Tk()
1921
app.title("Anagram Finder")
2022

@@ -34,9 +36,9 @@ def find_anagrams():
3436
result_label = tk.Label(frame, textvariable=y, wraplength=300)
3537
result_label.grid(row=1, columnspan=3, pady=10)
3638

37-
frame.config(bg="#333")
38-
label.config(fg="white")
39-
entry.config(bg="gray", fg="white")
40-
find_button.config(bg="gray", fg="white")
41-
result_label.config(bg="#333", fg="white")
39+
frame.config(bg="#333")
40+
label.config(fg="white")
41+
entry.config(bg="gray", fg="white")
42+
find_button.config(bg="gray", fg="white")
43+
result_label.config(bg="#333", fg="white")
4244
app.mainloop()

0 commit comments

Comments
 (0)