We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f43a87 commit 0fb09a2Copy full SHA for 0fb09a2
AnagramFinder(GUI)/app.py
@@ -1,20 +1,22 @@
1
import tkinter as tk
2
from itertools import permutations
3
4
+
5
def find_anagrams():
6
a = entry.get().strip().lower()
-
7
8
if a:
9
b = a.split()
10
c = []
11
for d in b:
12
e = ["".join(f) for f in permutations(d)]
13
c.extend(e)
14
15
y.set(", ".join(c))
16
else:
17
y.set("Please enter a valid string.")
18
19
20
app = tk.Tk()
21
app.title("Anagram Finder")
22
@@ -34,9 +36,9 @@ def find_anagrams():
34
36
result_label = tk.Label(frame, textvariable=y, wraplength=300)
35
37
result_label.grid(row=1, columnspan=3, pady=10)
38
-frame.config(bg="#333")
-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")
+frame.config(bg="#333")
+label.config(fg="white")
+entry.config(bg="gray", fg="white")
42
+find_button.config(bg="gray", fg="white")
43
+result_label.config(bg="#333", fg="white")
44
app.mainloop()
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments