Skip to content

Commit bf737ed

Browse files
FeedBack GUI
1 parent e729c13 commit bf737ed

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import tkinter as tk
2+
import tkinter.messagebox
3+
from tkinter import PhotoImage
4+
from tkinter import messagebox
5+
from tkinter.font import Font
6+
import customtkinter
7+
8+
9+
class FeedBack(customtkinter.CTk):
10+
def __init__(self):
11+
super().__init__()
12+
13+
self.geometry("300x200")
14+
self.title("User FeedBack")
15+
self.minsize(300, 200)
16+
17+
self.grid_rowconfigure(0, weight=1)
18+
self.grid_columnconfigure(0, weight=1)
19+
20+
self.textbox = customtkinter.CTkTextbox(master=self)
21+
self.textbox.grid(row=0, column=0, padx=10, pady=(10, 0), sticky="nsew")
22+
text=" Please enter your valuable Feedback \n We are sorry you have to delete your account \n Help us to improve\n"
23+
self.textbox.insert("1.0", text)
24+
25+
self.feedback = customtkinter.CTkEntry(master=self, placeholder_text="FeedBack")
26+
self.feedback.grid(row=1, column=0, padx=10, pady=5,sticky='ew')
27+
28+
self.button = customtkinter.CTkButton(master=self, command=self.button_callback, text="Done")
29+
self.button.grid(row=2, column=0, padx=10, pady=(0,20), sticky="ew")
30+
31+
def button_callback(self):
32+
def writing_feedback():
33+
fdbck = self.feedback.get()
34+
with open('CustomTkinter-GUI\\Feedback_GUI\\FeedbackGUI', 'w') as feedbck:
35+
feedbck.write(str(fdbck))
36+
writing_feedback()
37+
self.destroy()
38+
39+
40+
if __name__ == "__main__":
41+
app = FeedBack()
42+
app.mainloop()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sexy
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## SIGN UP GUI PAGE
2+
3+
To run the code, you need to specify the file paths where the feedback will be stored in a .txt format. Once you have set the file paths correctly, you can simply run the program.

0 commit comments

Comments
 (0)