Add a footer text to the bottom of the main gui window that displays "Group 28" and this text should be right aligned:

import tkinter as tk
from tkinter import filedialog
from difflib import SequenceMatcher

def choose\_file1():
 file\_path = filedialog.askopenfilename()
 file\_button1.config(text=file\_path)

def choose\_file2():
 file\_path = filedialog.askopenfilename()
 file\_button2.config(text=file\_path)

def check\_plagiarism():
 file\_path1 = file\_button1.cget("text")
 file\_path2 = file\_button2.cget("text")

 if file\_path1 == "Choose File" or file\_path2 == "Choose File":
 result\_label.config(text="Please select both files to check for plagiarism", fg="red")
 else:
 with open(file\_path1, "r") as f:
 text1 = f.read()

 with open(file\_path2, "r") as f:
 text2 = f.read()

 seqMatch = SequenceMatcher(None, text1, text2)
 match = seqMatch.find\_longest\_match(0, len(text1), 0, len(text2))
 ratio = (match.size \* 2) / (len(text1) + len(text2)) \* 100

 if ratio > 0.8:
 result\_label.config(text="Plagiarism detected! Similarity ratio: {:.2f}".format(ratio)+"%", fg=result\_color)

 # Open new window to display plagiarised text
 window = tk.Toplevel(root)
 window.title("Plagiarised Text")
 window.geometry("500x400")
 window.config(bg=bg\_color)

 text\_label = tk.Label(window, text="Plagiarised text:", font=("Helvetica Neue Roman", 16), fg=text\_color, bg=bg\_color)
 text\_label.pack(pady=10, anchor="w")

 plagiarised\_text = text1[match.a: match.a + match.size]
 text\_box = tk.Text(window, font=("Helvetica Neue Roman", 12), bg=button\_color, fg=text\_color)
 text\_box.insert(tk.END, plagiarised\_text)
 text\_box.pack(fill=tk.BOTH, expand=True, padx=10, pady=10)

 else:
 result\_label.config(text="No plagiarism detected. Similarity ratio: {:.2f}".format(ratio)+"%", fg=text\_color)

root = tk.Tk()
root.title("Plagiarism Checker")
root.geometry("600x400")
root.resizable(False, False)

bg\_color = "WHITE"
highlight\_color = "#0794f2"
button\_color = "WHITE"
text\_color = "#2F5061"
result\_color = "#98042D"

root.config(bg=bg\_color)

heading\_label = tk.Label(root, text="PLAGIARISM CHECKER", font=("SF Pro Display Black", 20), fg="WHITE", pady=20, bg="#2F5061")
heading\_label.pack(fill=tk.X)

file\_label1 = tk.Label(root, text="Select original file:", font=("Helvetica Neue Roman", 12), fg=text\_color, pady=10, bg=bg\_color)
file\_label1.pack()

file\_button1 = tk.Button(root, text="Choose File", font=("Helvetica Neue Roman", 12), bg=highlight\_color, fg=button\_color, command=choose\_file1)
file\_button1.pack(ipadx=10, ipady=5)

file\_label2 = tk.Label(root, text="Select file to compare with:", font=("Helvetica Neue Roman", 12), fg=text\_color, pady=10, bg=bg\_color)
file\_label2.pack()

file\_button2 = tk.Button(root, text="Choose File", font=("Helvetica Neue Roman", 12), bg=highlight\_color, fg=button\_color, command=choose\_file2)
file\_button2.pack(ipadx=10, ipady=5)

check\_button = tk.Button(root, text="Check Plagiarism", font=("Helvetica Neue Roman", 12), bg=highlight\_color, fg=button\_color, command=check\_plagiarism)
check\_button.pack(pady=20, ipadx=10, ipady=5)

result\_label = tk.Label(root, text="", font=("Helvetica Neue Roman", 16), bg=bg\_color, fg=result\_color)
result\_label.pack(pady=20)

# footer\_label = tk.Label(root, text="GROUP - 28", font=("SF Pro Display", 10), fg="WHITE", pady=20, bg="#2F5061")
# footer\_label.pack(fill=tk.X, ipady=100)

root.mainloop()
"Group 28"을 표시하는 바닥글 텍스트를 기본 GUI 창의 하단에 dd하면 이 텍스트가 오른쪽으로 정렬됩니다:tkinter를 tk로 가져옵니다.tkinter에서 파일로그를 가져옵니다.from difflib import SequenceMatcherdef choose\_file1(): file\_path = filedialog.askopenfilename() file\_button1.config(text=파일\_경로)def choose\_file2(): file\_path = filedialog.askopenfilename() file\_button2.config(text=파일\_경로)def check\_plagiarism(): file\_path1 = file\_button1.cget("text") file\_path2 = file\_button2.cget("text") file\_path1 == "파일 선택" 또는 file\_path2 == "파일 선택"인 경우: result\_label.config(text="표절 여부를 검사할 두 파일을 모두 선택하세요", fg="red") else: with open(file\_path1, "r") as f: text1 = f.read() with open(file\_path2, "r") as f: text2 = f.read() seqMatch = SequenceMatcher(None, text1, text2) match = seqMatch.find\_longest\_match(0, len(text1), 0, len(text2)) 비율 = (match.size \* 2) / (len(text1) + len(text2)) \* 100 비율 > 0.8이면 result\_label.config(text="표절이 감지되었습니다! 유사도 비율입니다: {:.2f}".format(ratio)+"%", fg=result\_color) # 표절된 텍스트를 표시하는 새 창 열기 window = tk.Toplevel(root) window.title("표절된 텍스트") window.geometry("500x400") window.config(bg=bg\_color) text\_label = tk.Label(window, text="표절된 텍스트:", font=("Helvetica Neue Roman", 16), fg=text\_color, bg=bg\_color) text\_label.pack(pady=10, anchor="w") plagiarised\_text = text1[match.a: match.a + match.size] text\_box = tk.Text(window, font=("Helvetica Neue Roman", 12), bg=버튼\_색, fg=텍스트\_색) text\_box.insert(tk.END, plagiarised\_text) text\_box.pack(fill=tk.BOTH, expand=True, padx=10, pady=10) else: result\_label.config(text="표절이 감지되지 않았습니다. 유사도 비율: {:.2f}".format(비율)+"%", fg=text\_color)root = tk.Tk()root.title("표절 검사기")root.geometry("600x400")root.resizable(False, False)bg\_color = "WHITE"highlight\_color = "#0794f2"button\_color = "WHITE"text\_color = "#2F5061"결과\_색 = "#98042D"root.config(bg=bg\_color)heading\_label = tk.Label(root, text="PLAGIARISM CHECKER", font=("SF Pro Display Black", 20), fg="WHITE", pady=20, bg="#2F5061")heading\_label.pack(fill=tk.X)file\_label1 = tk.Label(root, text="원본 파일 선택:", font=("Helvetica Neue Roman", 12), fg=text\_color, pady=10, bg=bg\_color)file\_label1.pack()file\_button1 = tk.Button(root, text="파일 선택", font=("Helvetica Neue Roman", 12), bg=하이라이트\_색, fg=버튼\_색, command=choose\_file1)file\_button1.pack(ipadx=10, ipady=5)file\_label2 = tk.Label(root, text="비교할 파일 선택:", font=("Helvetica Neue Roman", 12), fg=text\_color, pady=10, bg=bg\_color)file\_label2.pack()file\_button2 = tk.Button(root, text="파일 선택", font=("Helvetica Neue Roman", 12), bg=하이라이트\_색, fg=버튼\_색, command=choose\_file2)file\_button2.pack(ipadx=10, ipady=5)check\_button = tk.Button(root, text="표절 확인", font=("Helvetica Neue Roman", 12), bg=하이라이트\_색, fg=button\_색, command=check\_표절)check\_button.pack(pady=20, ipadx=10, ipady=5)result\_label = tk.Label(root, text="", font=("Helvetica Neue Roman", 16), bg=bg\_color, fg=result\_color)결과\_라벨.팩(pady=20)# footer\_label = tk.Label(root, text="GROUP - 28", font=("SF Pro Display", 10), fg="WHITE", pady=20, bg="#2F5061")# footer\_label.pack(fill=tk.X, ipady=100)root.mainloop()